Keep registry auth through manifest capture
This commit is contained in:
@@ -244,8 +244,6 @@ jobs:
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cleanup() { docker logout "$REGISTRY_HOST" >/dev/null 2>&1 || true; }
|
||||
trap cleanup EXIT
|
||||
printf '%s' "$REGISTRY_PASSWORD" | docker login "$REGISTRY_HOST" --username "$REGISTRY_USERNAME" --password-stdin
|
||||
docker build -f deploy/railway-api.Dockerfile -t "$IMAGE_REPOSITORY:api-$GITEA_SHA" .
|
||||
docker build -f deploy/railway-web.Dockerfile -t "$IMAGE_REPOSITORY:web-$GITEA_SHA" .
|
||||
@@ -277,3 +275,7 @@ jobs:
|
||||
path: artifacts/staging-images/manifest.env
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
|
||||
- name: Logout ACR registry
|
||||
if: always()
|
||||
run: docker logout "$REGISTRY_HOST" >/dev/null 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user