Skip to content

Commit d77adc8

Browse files
committed
Fix DockerHub deploy action
[skip CI]
1 parent 406cf9a commit d77adc8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docker_publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
uses: actions/checkout@v2
1616
# Add the following 'with' to run this using the
1717
# 'on: push' trigger
18-
# with:
19-
# ref: v1.4.0-alpha1
18+
with:
19+
ref: v1.4.0
2020

2121
- name: Get the release
2222
run: echo "::set-output name=CURRENT_RELEASE::$(python -c 'from pierky.arouteserver.version import __version__; print(__version__)')"
2323
id: get_the_release
2424

2525
- name: Is it a stable?
26-
run: echo "::set-output name=IS_STABLE_RELEASE::$(echo ${{ steps.get_the_release.outputs.CURRENT_RELEASE }} | egrep '^\d+\.\d+\.\d+$' &>/dev/null && echo "true" || echo "false")"
26+
run: echo "::set-output name=IS_STABLE_RELEASE::$(python -c 'from pierky.arouteserver.version import __version__; import re; import sys; re.match(r"^\d+\.\d+\.\d+$", __version__); sys.stdout.write(str(bool(re.match(r"^\d+\.\d+\.\d+$", __version__))))')"
2727
id: is_stable_release
2828

2929
- name: Show the arguments
@@ -43,7 +43,7 @@ jobs:
4343
tags: pierky/arouteserver:${{ steps.get_the_release.outputs.CURRENT_RELEASE }}
4444

4545
- name: Push to Docker Hub (latest)
46-
if: steps.is_stable_release.outputs.IS_STABLE_RELEASE == 'true'
46+
if: steps.is_stable_release.outputs.IS_STABLE_RELEASE == 'True'
4747
uses: docker/build-push-action@v2
4848
with:
4949
push: true

0 commit comments

Comments
 (0)