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 e1d990e commit 0645400Copy full SHA for 0645400
.github/workflows/dockerimage.yml
@@ -50,8 +50,8 @@ jobs:
50
if: github.ref == 'refs/heads/main'
51
run: |
52
# shellcheck disable=SC2086
53
- VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://;')"
54
- if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
+ VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/[-_][^:]*@.*$//; s/^.*://;')"
+ if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
55
\echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
56
fi
57
- name: Check if release already exists
0 commit comments