Pass credentials directly to buildah push via --creds
Some checks failed
CI / build (pull_request) Successful in 31s
Deploy / deploy (push) Failing after 1m12s

buildah login succeeds but push doesn't pick up the stored auth.
Skip login and pass --creds directly to each push command instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #21.
This commit is contained in:
2026-03-16 12:17:55 +00:00
parent 59b6728ce8
commit 767d821534

View File

@@ -28,14 +28,13 @@ jobs:
buildah bud --tls-verify=false -f Containerfile -t "$IMAGE_TAG" -t "$IMAGE_LATEST" . buildah bud --tls-verify=false -f Containerfile -t "$IMAGE_TAG" -t "$IMAGE_LATEST" .
echo "=== buildah login ===" CREDS="${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}"
buildah login --tls-verify=false "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}"
echo "=== buildah push tag ===" echo "=== buildah push tag ==="
buildah push --tls-verify=false "$IMAGE_TAG" buildah push --tls-verify=false --creds "$CREDS" "$IMAGE_TAG"
echo "=== buildah push latest ===" echo "=== buildah push latest ==="
buildah push --tls-verify=false "$IMAGE_LATEST" buildah push --tls-verify=false --creds "$CREDS" "$IMAGE_LATEST"
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV" echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"