We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be8d9bd commit a8b39cdCopy full SHA for a8b39cd
.github/workflows/docker-publish.yml
@@ -17,6 +17,8 @@ jobs:
17
uses: actions/checkout@v4
18
- name: Set up Docker Buildx
19
uses: docker/setup-buildx-action@v3
20
+ - name: Get source version
21
+ run: echo "SOURCE_VERSION=$(grep VERSION: compose.yaml | awk {'print $2'})" >>$GITHUB_ENV
22
- name: Docker meta
23
id: meta
24
uses: docker/metadata-action@v5
@@ -36,6 +38,8 @@ jobs:
36
38
uses: docker/build-push-action@v5
37
39
with:
40
context: .
41
+ build-args:
42
+ VERSION: ${{ env.SOURCE_VERSION }}
43
platforms: linux/amd64,linux/arm64
44
push: ${{ github.event_name != 'pull_request' }}
45
tags: ${{ steps.meta.outputs.tags }}
0 commit comments