Skip to content

Commit

Permalink
fix docker build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed May 27, 2024
1 parent 86368ac commit 2a05ae4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
docker: [ {name: 'scratch', sfx: ''}, {name: 'cuda', sfx: '-cuda'}, {name: 'alpine', sfx: '-alpine'} ]
docker: [ {name: 'latest', sfx: ''}, {name: 'cuda', sfx: '-cuda'}, {name: 'alpine', sfx: '-alpine'} ]
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -60,10 +60,11 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern=v{{version}}${{ matrix.docker.sfx }}
type=semver,pattern={{version}}${{ matrix.docker.sfx }}
type=semver,pattern={{major}}.{{minor}}${{ matrix.docker.sfx }}
type=semver,pattern={{major}}${{ matrix.docker.sfx }}
type=semver,priority=1010,pattern=${{ matrix.docker.name }}
type=semver,priority=1009,pattern={{major}}${{ matrix.docker.sfx }}
type=semver,priority=1008,pattern={{major}}.{{minor}}${{ matrix.docker.sfx }}
type=semver,priority=1007,pattern={{version}}${{ matrix.docker.sfx }}
type=semver,priority=1006,pattern=v{{version}}${{ matrix.docker.sfx }}
type=ref,enable=true,event=branch,suffix=${{ matrix.docker.sfx }}
# Build and push Docker image with Buildx
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion init/docker/makedocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docker buildx build --load --pull --tag notifiarr \
--build-arg "VENDOR=${VENDOR}" \
--build-arg "AUTHOR=${MAINT}" \
--build-arg "SOURCE_URL=${SOURCE_URL}" \
--file init/docker/Dockerfile.scratch .
--file init/docker/Dockerfile.latest .
2 changes: 1 addition & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ fi
[ -n "$DOCKER_TAG" ] || export DOCKER_TAG=$(echo $SOURCE_BRANCH | sed 's/^v*\([0-9].*\)/\1/')
[ -n "$DOCKER_REPO" ] || export DOCKER_REPO="golift/notifiarr"
[ -n "$IMAGE_NAME" ] || export IMAGE_NAME="${DOCKER_REPO}:${DOCKER_TAG}"
[ -n "$DOCKERFILE_PATH" ] || export DOCKERFILE_PATH="init/docker/Dockerfile.scratch"
[ -n "$DOCKERFILE_PATH" ] || export DOCKERFILE_PATH="init/docker/Dockerfile.latest"

0 comments on commit 2a05ae4

Please sign in to comment.