Skip to content

Commit

Permalink
Update and rename cd-branch.yml to cd-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengming-Li authored Apr 17, 2024
1 parent 7d9ed41 commit 27f4fed
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cd-branch.yml → .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
- name: Build Backend Image
run: docker build -t berkeleytime-backend ./backend/
- name: Tag Docker Image
- name: Tag Backend Image
run: docker tag berkeleytime-backend ${{ secrets.DOCKER_USERNAME }}/berkeleytime-backend:${{ github.sha }}
- name: Push Docker Image
- name: Push Backend Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/berkeleytime-backend:${{ github.sha }}
- name: Build Frontend Image
run: docker build -t berkeleytime-frontend ./frontend/
- name: Tag Frontend Image
run: docker tag berkeleytime-frontend ${{ secrets.DOCKER_USERNAME }}/berkeleytime-frontend:${{ github.sha }}
- name: Push Frontend Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/berkeleytime-frontend:${{ github.sha }}
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.0.3
with:
Expand Down

0 comments on commit 27f4fed

Please sign in to comment.