You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): create Docker Hub repository before pushing image
The release workflow's Docker push step fails with "denied: requested
access to the resource is denied" because the Docker Hub repository
runtimeverificationinc/komet-node does not yet exist. Docker Hub
requires explicit repository creation before the first push.
This adds a Docker Hub API call to create the repository if it doesn't
already exist, with proper error handling and status reporting.
-d "{\"namespace\":\"${DOCKERHUB_NAMESPACE}\",\"name\":\"${DOCKERHUB_REPO}\",\"is_private\":false,\"description\":\"Komet Node — local Stellar testnet backed by K semantics\"}" \
138
+
"https://hub.docker.com/v2/repositories/")
139
+
if [ "${HTTP_CODE}" = "201" ]; then
140
+
echo "Docker Hub repository created successfully"
141
+
elif [ "${HTTP_CODE}" = "409" ]; then
142
+
echo "Docker Hub repository already exists"
143
+
else
144
+
echo "::warning::Docker Hub repo creation returned HTTP ${HTTP_CODE}: $(cat /tmp/dockerhub-response.json)"
0 commit comments