Skip to content

Commit

Permalink
use version from compose.yaml in github action builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges committed Dec 6, 2024
1 parent be8d9bd commit a8b39cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Get source version
run: echo "SOURCE_VERSION=$(grep VERSION: compose.yaml | awk {'print $2'})" >>$GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -36,6 +38,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
build-args:
VERSION: ${{ env.SOURCE_VERSION }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit a8b39cd

Please sign in to comment.