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 4e44a61 commit 50c13d6Copy full SHA for 50c13d6
.github/workflows/deploy-docker.yml
@@ -17,7 +17,17 @@ jobs:
17
18
- name: Get the version
19
id: get_version
20
- run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
+ run: |
21
+ REF=${GITHUB_REF#refs/tags/}
22
+ if [[ $REF == *"refs"* ]]; then
23
+ REF=""
24
+ fi
25
+ echo ::set-output name=VERSION::$REF
26
+
27
+ - name: Publish
28
+ env:
29
+ DOCKER_TAG: ${{ steps.get_version.outputs.VERSION }}
30
+ run: echo $DOCKER_TAG
31
32
- name: Docker login
33
run: echo '${{ secrets.DOCKER_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin
0 commit comments