diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c441bf8..937e8e9 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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