From 2a505b32f0414f52b967ad72e7ee1edc78d030ce Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Thu, 19 Dec 2024 14:42:01 -0700 Subject: [PATCH] fix: added additional params to Build Docker Image Signed-off-by: Matt Peterson --- .../zxc-verify-docker-build-determinism.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/zxc-verify-docker-build-determinism.yaml b/.github/workflows/zxc-verify-docker-build-determinism.yaml index 92219b2f..d917b22c 100644 --- a/.github/workflows/zxc-verify-docker-build-determinism.yaml +++ b/.github/workflows/zxc-verify-docker-build-determinism.yaml @@ -328,6 +328,24 @@ jobs: - name: Show Docker Info run: docker info +# - name: Build Docker Image +# uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 +# env: +# SOURCE_DATE_EPOCH: ${{ steps.commit.outputs.source-date }} +# if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} +# with: +# push: true +# no-cache: true +# platforms: linux/amd64,linux/arm64 +# build-args: | +# SOURCE_DATE_EPOCH=${{ steps.commit.outputs.source-date }} +# VERSION=${{ env.VERSION }} +# context: ./${{ env.DOCKER_CONTEXT_PATH }} +# file: ./${{ env.DOCKER_CONTEXT_PATH }}/Dockerfile +# tags: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.VERSION }} +# build-contexts: | +# distributions=./server/build/distributions + - name: Build Docker Image uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 env: @@ -338,8 +356,12 @@ jobs: platforms: linux/amd64,linux/arm64 build-args: | SOURCE_DATE_EPOCH=${{ needs.generate-baseline.outputs.source-date }} + VERSION=${{ env.VERSION }} context: ${{ env.DOCKER_CONTEXT_PATH }} + file: ./${{ env.DOCKER_CONTEXT_PATH }}/Dockerfile tags: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.VERSION }} + build-contexts: | + distributions=./server/build/distributions - name: Regenerate Manifest id: regen-manifest