Skip to content

Commit

Permalink
fix: write git version to VERSION in CI (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Sep 1, 2023
1 parent f1be9fd commit 46a903e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: "0"

- name: Log in to the Container registry
uses: docker/login-action@v2
Expand All @@ -43,6 +45,10 @@ jobs:
type=ref,event=branch
type=ref,event=pr
- name: Write "git describe --tags --dirty" to VERSION
run: |
git describe --tags --dirty > VERSION
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 46a903e

Please sign in to comment.