Skip to content

Commit 50c13d6

Browse files
authored
Fix CI environment variable.. again (#29)
* Fix CI environment variable * Remove debug code
1 parent 4e44a61 commit 50c13d6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/deploy-docker.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@ jobs:
1717

1818
- name: Get the version
1919
id: get_version
20-
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
20+
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
2131

2232
- name: Docker login
2333
run: echo '${{ secrets.DOCKER_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin

0 commit comments

Comments
 (0)