Skip to content

Commit 1868bb6

Browse files
committed
dynamic versioning
1 parent d3e1659 commit 1868bb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
- uses: actions/[email protected]
2121
with:
2222
fetch-depth: 0
23+
- name: createVersion
24+
run: |
25+
echo "VERSION=$(git describe --tag --always)" >> $GITHUB_ENV
26+
2327
- name: 'Login to GitHub Container Registry'
2428
uses: docker/[email protected]
2529
with:
@@ -29,4 +33,4 @@ jobs:
2933

3034
- name: build and push
3135
run: |
32-
make docker-buildx docker-push
36+
make docker-buildx docker-push IMG=ghcr.io/${{ github.actor }}/${{ github.repository }}:${{ vars.VERSION }}

0 commit comments

Comments
 (0)