Skip to content

Commit

Permalink
added version file
Browse files Browse the repository at this point in the history
  • Loading branch information
anbo-de committed Mar 28, 2024
1 parent 92e888b commit 3a038f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Save tag to file if release
if: startsWith(github.ref, 'refs/tags/')
run: echo ${{ github.ref_name }} > VERSION.txt && cat VERSION.txt
- name: Build the Docker image for temporary use only
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: docker build . --file Dockerfile --tag tmp:latest
Expand Down

0 comments on commit 3a038f6

Please sign in to comment.