Skip to content

Commit

Permalink
Dockerfile needs build-context distributions and build-arg Version in…
Browse files Browse the repository at this point in the history
… order to sucessfully build and work as expected.

Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jul 29, 2024
1 parent b5bebc5 commit 71eaa3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 71eaa3e

Please sign in to comment.