diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4036ca8..5586a72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: - name: Prepare id: prep run: | - DOCKER_IMAGE=$(echo "$GITHUB_REPOSITORY") + DOCKER_IMAGE=ghcr.io/$(echo "$GITHUB_REPOSITORY") DOCKER_VERSION=noop if [ "${{ github.event_name }}" = "schedule" ]; then DOCKER_VERSION=nightly @@ -51,7 +51,7 @@ jobs: DOCKER_TAGS="${DOCKER_IMAGE}:${DOCKER_VERSION}" if [[ $DOCKER_VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then MINOR=${DOCKER_VERSION%.*} - MAJOR=${DOCKER_VERSION%.*} + MAJOR=${MINOR%.*} DOCKER_TAGS="$DOCKER_TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest" elif [ "${{ github.event_name }}" = "push" ]; then DOCKER_TAGS="$DOCKER_TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}"