Skip to content

Commit

Permalink
ci: Fix Image publish GHA WF to provide build-arg and build-context t…
Browse files Browse the repository at this point in the history
…o dockerfile. (#58)

Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 authored Jul 30, 2024
1 parent 726e798 commit dc3568a
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=./server/build/distributions

0 comments on commit dc3568a

Please sign in to comment.