diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4ad6c0b..ce6afc1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,7 +17,7 @@ jobs: - name: Build an image from Dockerfile run: | - docker build --file Dockerfile --tag conplementag/cops-controller:${{ github.sha }} . + docker build --pull --file Dockerfile --tag conplementag/cops-controller:${{ github.sha }} . - name: Download and install syft run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0a871e..46579a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Build & Push Docker image if: ${{ steps.release.outputs.release_created }} run: | - docker build . --file Dockerfile --tag conplementag/cops-controller:v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} + docker build --pull . --file Dockerfile --tag conplementag/cops-controller:v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} docker push conplementag/cops-controller:v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} - name: Download chart releaser if: ${{ steps.release.outputs.release_created }}