Remove fallback error handling from image push - fail fast if credentials missing
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Colin 2026-01-21 10:22:41 -05:00
parent 618a2c1ff7
commit 95d9982973
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
1 changed files with 4 additions and 4 deletions

View File

@ -77,11 +77,11 @@ steps:
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- HOSTNAME=$(docker info --format "{{.Name}}")
- echo "Building on $HOSTNAME"
- echo "$${DOCKER_REGISTRY_PASSWORD}" | docker login -u "$${DOCKER_REGISTRY_USER}" --password-stdin || echo "Docker registry login skipped"
- echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us || echo "Registry login skipped"
- echo "$${DOCKER_REGISTRY_PASSWORD}" | docker login -u "$${DOCKER_REGISTRY_USER}" --password-stdin
- echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us
- docker build -t hastebin:test --no-cache .
- docker tag hastebin:test git.nixc.us/hastebin:latest || echo "Image tagging skipped"
- docker push git.nixc.us/hastebin:latest || echo "Image push skipped (may need registry credentials)"
- docker tag hastebin:test git.nixc.us/hastebin:latest
- docker push git.nixc.us/hastebin:latest
when:
branch: main
event: [push, cron]