We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4985460 commit 6de0c9dCopy full SHA for 6de0c9d
.github/workflows/docker-image.yml
@@ -16,9 +16,14 @@ jobs:
16
with:
17
username: ${{ secrets.DOCKERHUB_USERNAME }}
18
password: ${{ secrets.DOCKERHUB_TOKEN }}
19
- - name: Extract version from Git tag
+ - name: Extract version from Git ref
20
id: vars
21
- run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+ run: |
22
+ if [[ $GITHUB_REF == refs/tags/* ]]; then
23
+ echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
24
+ else
25
+ echo "VERSION=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
26
+ fi
27
- name: Set up Docker Buildx
28
uses: docker/setup-buildx-action@v3
29
- name: Build and push
0 commit comments