Add docker login to build-push.sh and watch-loop.sh for registry auth (HTTP secret)

This commit is contained in:
2026-03-02 05:40:02 +00:00
parent ee11ef9e9b
commit 6181727406
2 changed files with 4 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ else
TARGETS=("dd0c-drift" "dd0c-alert" "dd0c-portal" "dd0c-cost" "dd0c-run")
fi
# Login to registry
echo "secret" | docker login "$REGISTRY" --username dd0c --password-stdin 2>/dev/null || true
echo -e "${YELLOW}dd0c Build & Push — $(date -u '+%Y-%m-%d %H:%M UTC')${NC}"
echo -e "Registry: ${REGISTRY}\n"

View File

@@ -46,6 +46,7 @@ declare -A SERVICES=(
["06-runbook-automation"]="dd0c-run:06-runbook-automation/saas"
)
echo "secret" | docker login "$REGISTRY" --username dd0c --password-stdin 2>/dev/null || true
REBUILT=0
for prefix in "${!SERVICES[@]}"; do
if echo "$CHANGED" | grep -q "products/$prefix/"; then