From dc89580edbb851656c4079036f318d8daca77020 Mon Sep 17 00:00:00 2001 From: maxmwang Date: Sat, 28 Sep 2024 17:33:03 -0700 Subject: [PATCH] use --no-cache flag --- .github/workflows/cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index ebc6183e5..87d4dcde1 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -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: @@ -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 }}"