Skip to content

Commit e2aee55

Browse files
fix push action
1 parent f5d7d44 commit e2aee55

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/actions/push-docker/action.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ runs:
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

.github/helper_scripts/build_frontend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import os
22
import shutil
33
import subprocess
4-
from sys import stdout, exit as sys_exit
4+
from sys import exit as sys_exit
5+
from sys import stdout
56

67
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
78

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,20 @@ jobs:
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."

0 commit comments

Comments
 (0)