diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index fee8522..3f6b398 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -18,7 +18,7 @@ on: env: # Use docker.io for Docker Hub if empty REGISTRY: ghcr.io - DOCKER_REGISTRY: ghcr.io/servercontainers + DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }} # github.repository as / IMAGE_NAME: ${{ github.repository }} @@ -72,7 +72,7 @@ jobs: - name: New version needed? id: docker_version_check run: | - ./build.sh variant + ./build.sh version-check - name: Extract Docker Version Tag id: docker_version_tag diff --git a/build.sh b/build.sh index c93de4a..e8f2cbd 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,9 @@ docker buildx build -q --pull --no-cache --platform "$PLATFORM" -t "$IMG:$TAG" - echo "$@" | grep "release" 2>/dev/null >/dev/null && echo ">> releasing new latest" && docker buildx build -q --pull --platform "$PLATFORM" -t "$IMG:latest" --push . +# make sure to exit if this is only version check +echo "$@" | grep "version-check" && exit 0 + # make sure this is only executed in main script echo "$@" | grep "variant" && exit 0