Skip to content

Commit

Permalink
Update build-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks authored Dec 6, 2024
1 parent 0c1f695 commit e6266b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,20 @@ jobs:
uses: docker/build-push-action@v3
with:
context: ./frontend
build-args: |
COMMIT_HASH=${{ env.hash }}
file: ./frontend/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:latest
tags: |
${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:latest
${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:${{ env.hash }}
- name: Build and push backend Docker image to Docker Hub
uses: docker/build-push-action@v3
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/pastebook-backend:latest
tags: |
${{ secrets.DOCKER_USERNAME }}/pastebook-backend:latest
${{ secrets.DOCKER_USERNAME }}/pastebook-backend:${{ env.hash }}

0 comments on commit e6266b3

Please sign in to comment.