Skip to content

Commit 4759320

Browse files
authored
Update main.yml
1 parent 610e47e commit 4759320

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- name: Prepare
2929
id: prep
3030
run: |
31-
DOCKER_IMAGE=criticalmanufacturing/repository
31+
DOCKER_IMAGE=criticalmanufacturing/nexus
32+
BASE_VERSION=3.27.0
3233
VERSION=noop
3334
if [ "${{ github.event_name }}" = "schedule" ]; then
3435
VERSION=nightly
@@ -42,8 +43,8 @@ jobs:
4243
elif [[ $GITHUB_REF == refs/pull/* ]]; then
4344
VERSION=pr-${{ github.event.number }}
4445
fi
45-
TAGS="${DOCKER_IMAGE}:${VERSION}"
46-
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
46+
TAGS="${DOCKER_IMAGE}:${BASE_VERSION}-${VERSION}"
47+
if [[ $VERSION =~ ^.*v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
4748
MINOR=${VERSION%.*}
4849
MAJOR=${MINOR%.*}
4950
TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest"

0 commit comments

Comments
 (0)