Skip to content

Commit

Permalink
cleaner implementation of version check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Oct 5, 2023
1 parent 0752ca5 commit 8b7ff8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8b7ff8f

Please sign in to comment.