Skip to content

Commit

Permalink
set VERSION using build-args and metadata-action
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Aug 13, 2024
1 parent f813604 commit ab0645f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
branches:
- "master"
schedule:
- cron: '0 6 15 * *' # 15th of each month at 6am

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -65,6 +67,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v6
with:
build-args: VERSION=${{ steps.meta.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit ab0645f

Please sign in to comment.