Skip to content

Commit a8b39cd

Browse files
committed
use version from compose.yaml in github action builds
1 parent be8d9bd commit a8b39cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/checkout@v4
1818
- name: Set up Docker Buildx
1919
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
2022
- name: Docker meta
2123
id: meta
2224
uses: docker/metadata-action@v5
@@ -36,6 +38,8 @@ jobs:
3638
uses: docker/build-push-action@v5
3739
with:
3840
context: .
41+
build-args:
42+
VERSION: ${{ env.SOURCE_VERSION }}
3943
platforms: linux/amd64,linux/arm64
4044
push: ${{ github.event_name != 'pull_request' }}
4145
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)