Skip to content

Commit 5705e39

Browse files
committed
Fix regex
1 parent 1957f0e commit 5705e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
run: |
7777
# shellcheck disable=SC2086
7878
VERSION="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://;')"
79-
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\-minimal$ ]] ; then
80-
\echo "VERSION=${VERSION/[0-9][0-9]*-minimal/}" >> "${GITHUB_ENV}"
79+
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]\-minimal$ ]] ; then
80+
\echo "VERSION=${VERSION/\.[0-9]-minimal/}" >> "${GITHUB_ENV}"
8181
fi
8282
- name: Check if release already exists
8383
if: env.VERSION != ''

0 commit comments

Comments
 (0)