Skip to content

Commit

Permalink
use --no-cache flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Sep 29, 2024
1 parent f9db87b commit dc89580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Build and Push Image with Tag
run: |
docker build --platform=linux/amd64 --target backend-prod --tag "${{ secrets.DOCKER_USERNAME }}/bt-backend:${{ inputs.tag }}" .
docker build --no-cache --platform=linux/amd64 --target backend-prod --tag "${{ secrets.DOCKER_USERNAME }}/bt-backend:${{ inputs.tag }}" .
docker push "${{ secrets.DOCKER_USERNAME }}/bt-backend:${{ inputs.tag }}"
build-push-frontend:
Expand All @@ -44,5 +44,5 @@ jobs:

- name: Build and Push Image with Tag
run: |
docker build --platform=linux/amd64 --target frontend-prod --tag "${{ secrets.DOCKER_USERNAME }}/bt-frontend:${{ inputs.tag }}" .
docker build --no-cache --platform=linux/amd64 --target frontend-prod --tag "${{ secrets.DOCKER_USERNAME }}/bt-frontend:${{ inputs.tag }}" .
docker push "${{ secrets.DOCKER_USERNAME }}/bt-frontend:${{ inputs.tag }}"

0 comments on commit dc89580

Please sign in to comment.