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 217bfa7 commit f0f6ac8Copy full SHA for f0f6ac8
.github/workflows/docker-build-push.yml
@@ -76,9 +76,9 @@ jobs:
76
shell: bash
77
run: |
78
# shellcheck disable=SC2086
79
- VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://;')"
80
- if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
81
- \echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
+ VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://; s/\-.*$//;')"
+ if [[ "${VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.([0-9]+)$ ]] ; then
+ \echo "VERSION=${BASH_REMATCH[1]}-${BASH_REMATCH[2]}" >> "${GITHUB_ENV}"
82
fi
83
- name: Check if release already exists
84
if: env.VERSION != ''
0 commit comments