Add docker login to build-push.sh and watch-loop.sh for registry auth (HTTP secret)
This commit is contained in:
@@ -42,6 +42,9 @@ else
|
|||||||
TARGETS=("dd0c-drift" "dd0c-alert" "dd0c-portal" "dd0c-cost" "dd0c-run")
|
TARGETS=("dd0c-drift" "dd0c-alert" "dd0c-portal" "dd0c-cost" "dd0c-run")
|
||||||
fi
|
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 "${YELLOW}dd0c Build & Push — $(date -u '+%Y-%m-%d %H:%M UTC')${NC}"
|
||||||
echo -e "Registry: ${REGISTRY}\n"
|
echo -e "Registry: ${REGISTRY}\n"
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ declare -A SERVICES=(
|
|||||||
["06-runbook-automation"]="dd0c-run:06-runbook-automation/saas"
|
["06-runbook-automation"]="dd0c-run:06-runbook-automation/saas"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
echo "secret" | docker login "$REGISTRY" --username dd0c --password-stdin 2>/dev/null || true
|
||||||
REBUILT=0
|
REBUILT=0
|
||||||
for prefix in "${!SERVICES[@]}"; do
|
for prefix in "${!SERVICES[@]}"; do
|
||||||
if echo "$CHANGED" | grep -q "products/$prefix/"; then
|
if echo "$CHANGED" | grep -q "products/$prefix/"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user