diff --git a/.github/workflows/release-push-image.yaml b/.github/workflows/release-push-image.yaml index 2027b2396..a072e42bc 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=./server/build/distributions