Skip to content

Commit 0645400

Browse files
committed
Update dockerimage.yml
1 parent e1d990e commit 0645400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dockerimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
if: github.ref == 'refs/heads/main'
5151
run: |
5252
# 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
53+
VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/[-_][^:]*@.*$//; s/^.*://;')"
54+
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
5555
\echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
5656
fi
5757
- name: Check if release already exists

0 commit comments

Comments
 (0)