File tree Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 8383 --tag "${TAG}" \
8484 "${TAG}-amd64" \
8585 "${TAG}-arm64"
86+
87+ docker push "${TAG}"
8688 done
87-
88- echo "Successfully pulled from ECR and pushed to DockerHub"
89-
90- - name : Build And Push Docker Image
91- if : inputs.source_registry == ''
92- uses : docker/build-push-action@v6.16.0
93- with :
94- context : " ."
95- file : " Dockerfile"
96- push : true
97- platforms : linux/amd64,linux/arm64
98- tags : ${{ steps.docker_tags.outputs.TAGS_LIST }}
99- cache-from : type=gha
100- cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 11import os
22import shutil
33import subprocess
4- from sys import stdout , exit as sys_exit
4+ from sys import exit as sys_exit
5+ from sys import stdout
56
67from hatchling .builders .hooks .plugin .interface import BuildHookInterface
78
Original file line number Diff line number Diff line change 8282 docker_password : ${{ secrets.DOCKER_PASSWORD }}
8383 source_registry : ${{ secrets.SAM_AWS_ECR_REGISTRY }}
8484 source_image_tag : ${{ needs.release.outputs.new_version }}-${{ steps.get_commit_hash.outputs.short_sha }}
85+
86+ - name : Verify image is in DockerHub
87+ run : |
88+ set -e
89+ IMAGE="solace/solace-agent-mesh"
90+ VERSION="${{ needs.release.outputs.new_version }}"
91+ DOCKERHUB_URL="https://hub.docker.com/v2/repositories/${IMAGE}/tags/${VERSION}"
92+
93+ echo "Checking DockerHub for ${IMAGE}:${VERSION}..."
94+ http_code=$(curl -s -o /dev/null -w "%{http_code}" "$DOCKERHUB_URL")
95+
96+ if [ "$http_code" -ne 200 ]; then
97+ echo "❌ Image tag ${IMAGE}:${VERSION} NOT found on DockerHub!"
98+ exit 1
99+ fi
100+
101+ echo "✅ Image tag ${IMAGE}:${VERSION} exists on DockerHub."
You can’t perform that action at this time.
0 commit comments