- Adaptation of push_to_scaleway.sh script
This commit is contained in:
@@ -143,16 +143,6 @@ fi
|
||||
|
||||
echo "🔍 Services to process: ${SERVICE_ARRAY[*]}"
|
||||
|
||||
# Function to check if image exists locally
|
||||
check_local_image_exists() {
|
||||
local image_name="$1"
|
||||
if podman image exists "$image_name" 2>/dev/null; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to authenticate with Scaleway registry
|
||||
authenticate_scaleway() {
|
||||
echo "🔐 Authenticating with Scaleway registry..."
|
||||
@@ -213,18 +203,10 @@ for SERVICE in "${SERVICE_ARRAY[@]}"; do
|
||||
continue
|
||||
fi
|
||||
|
||||
# Check if local version image exists
|
||||
if ! check_local_image_exists "$LOCAL_VERSION_IMAGE"; then
|
||||
echo " ❌ Local version image not found: $LOCAL_VERSION_IMAGE"
|
||||
echo " 💡 Run tag_registry_version.sh first to create version tags"
|
||||
FAILED_SERVICES+=("$SERVICE")
|
||||
continue
|
||||
fi
|
||||
|
||||
# Pull local version image to ensure we have it
|
||||
echo " 📥 Pulling local version image..."
|
||||
echo " 📥 Ensuring image is available (pulling from local registry)..."
|
||||
if ! podman pull "$LOCAL_VERSION_IMAGE"; then
|
||||
echo " ❌ Failed to pull $LOCAL_VERSION_IMAGE"
|
||||
echo " ❌ Image not found or not accessible in local registry: $LOCAL_VERSION_IMAGE"
|
||||
echo " 💡 Controleer of de tag bestaat en of je bent ingelogd: podman login $LOCAL_REGISTRY"
|
||||
FAILED_SERVICES+=("$SERVICE")
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user