forked from tas/major_tom
Add debug output to identify which buildah command hangs
Remove unnecessary registries.conf write (host already has it). Add set -ex and echo markers between commands to pinpoint the hang. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,15 +21,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push container image
|
- name: Build and push container image
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /etc/containers
|
set -ex
|
||||||
printf '[[registry]]\nlocation = "git.kimchi"\ninsecure = true\n' > /etc/containers/registries.conf
|
|
||||||
|
|
||||||
IMAGE_TAG="${{ env.IMAGE }}:sha-${GITHUB_SHA::8}"
|
IMAGE_TAG="${{ env.IMAGE }}:sha-${GITHUB_SHA::8}"
|
||||||
IMAGE_LATEST="${{ env.IMAGE }}:latest"
|
IMAGE_LATEST="${{ env.IMAGE }}:latest"
|
||||||
|
|
||||||
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 ==="
|
||||||
buildah login --tls-verify=false "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}"
|
buildah login --tls-verify=false "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}"
|
||||||
|
|
||||||
|
echo "=== buildah push tag ==="
|
||||||
buildah push --tls-verify=false "$IMAGE_TAG"
|
buildah push --tls-verify=false "$IMAGE_TAG"
|
||||||
|
|
||||||
|
echo "=== buildah push latest ==="
|
||||||
buildah push --tls-verify=false "$IMAGE_LATEST"
|
buildah push --tls-verify=false "$IMAGE_LATEST"
|
||||||
|
|
||||||
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"
|
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"
|
||||||
|
|||||||
Reference in New Issue
Block a user