Pass credentials directly to buildah push via --creds
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:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user