Skip to content

Commit

Permalink
Try to remove latest tag first
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jan 28, 2024
1 parent 656a6c8 commit 9ad0c2a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
build-and-push-manifest:
name: Build and push the docker hub manifest
runs-on: ubuntu-latest
needs: push_to_registry
needs: [push_to_registry, tags-cleanup]
environment:
name: "docker-hub"
url: https://hub.docker.com/r/hickorydns/hickory-dns
Expand Down Expand Up @@ -93,7 +93,6 @@ jobs:

tags-cleanup:
runs-on: ubuntu-latest
needs: build-and-push-manifest
environment:
name: "docker-hub"
url: https://hub.docker.com/r/hickorydns/hickory-dns
Expand Down Expand Up @@ -123,13 +122,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Remove DockerHub tags via hub-tool
run: |
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:arm64-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:amd64-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:armv7-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:armv6-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:ppc64le-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:s390x-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:386-latest || true
./hub-tool tag rm --verbose --force docker.io/hickorydns/hickory-dns:latest || true
./hub-tool tag ls --verbose docker.io/hickorydns/hickory-dns
- name: Logout hub-tool
if: always()
Expand Down

0 comments on commit 9ad0c2a

Please sign in to comment.