This is an automated email from the ASF dual-hosted git repository.
maciej pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new fec904d4f fix(ci): remove temporary tag cleanup job (#2492)
fec904d4f is described below
commit fec904d4f47b56d6ddd0052de5c95d7c75610843
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue Dec 16 11:34:07 2025 +0100
fix(ci): remove temporary tag cleanup job (#2492)
---
.github/workflows/post-merge.yml | 68 ----------------------------------------
1 file changed, 68 deletions(-)
diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml
index d54380f35..c47091e41 100644
--- a/.github/workflows/post-merge.yml
+++ b/.github/workflows/post-merge.yml
@@ -223,74 +223,6 @@ jobs:
run: |
docker buildx imagetools inspect "${{ steps.config.outputs.image
}}:edge"
- # TEMPORARY: Clean up legacy architecture-specific tags from DockerHub
- # This job can be removed after the first successful run cleans up the old
tags
- cleanup-legacy-tags:
- name: Cleanup legacy tags
- needs: [plan, docker-manifests]
- if: ${{ !github.event.repository.fork &&
fromJson(needs.plan.outputs.components).include[0].component != 'noop' }}
- runs-on: ubuntu-latest
- env:
- DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
- DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
- steps:
- - name: Delete legacy edge-amd64 and edge-arm64 tags
- run: |
- set -euo pipefail
-
- # Get Docker Hub JWT token
- echo "🔐 Authenticating with Docker Hub..."
- TOKEN=$(curl -s -X POST \
- -H "Content-Type: application/json" \
- -d "{\"username\": \"${DOCKERHUB_USER}\", \"password\":
\"${DOCKERHUB_TOKEN}\"}" \
- https://hub.docker.com/v2/users/login/ | jq -r .token)
-
- if [ -z "$TOKEN" ] || [ "$TOKEN" = "null" ]; then
- echo "::error::Failed to authenticate with Docker Hub"
- exit 1
- fi
-
- # Images to clean up (from .github/config/publish.yml)
- IMAGES=(
- "apache/iggy"
- "apache/iggy-connect"
- "apache/iggy-mcp"
- "apache/iggy-web-ui"
- "apache/iggy-bench-dashboard"
- )
-
- # Tags to delete
- TAGS=("edge-amd64" "edge-arm64")
-
- for IMAGE in "${IMAGES[@]}"; do
- # Extract namespace and repo from image name
- NAMESPACE="${IMAGE%%/*}"
- REPO="${IMAGE#*/}"
-
- for TAG in "${TAGS[@]}"; do
- echo "🗑️ Deleting ${IMAGE}:${TAG}..."
-
- HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X DELETE \
- -H "Authorization: JWT ${TOKEN}" \
-
"https://hub.docker.com/v2/repositories/${NAMESPACE}/${REPO}/tags/${TAG}/")
-
- case $HTTP_CODE in
- 200|204)
- echo " ✅ Deleted ${IMAGE}:${TAG}"
- ;;
- 404)
- echo " ⏭️ Tag ${IMAGE}:${TAG} not found (already deleted
or never existed)"
- ;;
- *)
- echo " ⚠️ Failed to delete ${IMAGE}:${TAG} (HTTP
${HTTP_CODE})"
- ;;
- esac
- done
- done
-
- echo ""
- echo "🎉 Legacy tag cleanup complete!"
-
build-artifacts:
name: Build artifacts
uses: ./.github/workflows/_build_rust_artifacts.yml