From 71eaa3e890a77e4c1118e0d8b9508dba6c10d5a5 Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Mon, 29 Jul 2024 12:27:29 -0600 Subject: [PATCH] Dockerfile needs build-context distributions and build-arg Version in order to sucessfully build and work as expected. Signed-off-by: Alfredo Gutierrez --- .github/workflows/release-push-image.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-push-image.yaml b/.github/workflows/release-push-image.yaml index 2027b2396..9c6613b62 100644 --- a/.github/workflows/release-push-image.yaml +++ b/.github/workflows/release-push-image.yaml @@ -89,6 +89,12 @@ jobs: with: driver-opts: network=host + - name: Extract version + id: extract_version + run: | + VERSION=$(grep 'version=' gradle.properties | cut -d '=' -f2) + echo "VERSION=${VERSION}" >> $GITHUB_ENV + - name: Build and push image uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 # v6.4.1 with: @@ -99,3 +105,7 @@ jobs: platforms: linux/amd64, linux/arm64 push: true tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.TAG }} + build-args: | + VERSION=${{ env.VERSION }} + build-contexts: | + distributions=../build/distributions