Add insecure registry config for buildah #20

Merged
tas merged 3 commits from fix/insecure-registry-config into main 2026-03-16 11:37:49 +00:00
Showing only changes of commit 59b6728ce8 - Show all commits

View File

@@ -21,15 +21,20 @@ jobs:
- name: Build and push container image
run: |
mkdir -p /etc/containers
printf '[[registry]]\nlocation = "git.kimchi"\ninsecure = true\n' > /etc/containers/registries.conf
set -ex
IMAGE_TAG="${{ env.IMAGE }}:sha-${GITHUB_SHA::8}"
IMAGE_LATEST="${{ env.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 }}"
echo "=== buildah push tag ==="
buildah push --tls-verify=false "$IMAGE_TAG"
echo "=== buildah push latest ==="
buildah push --tls-verify=false "$IMAGE_LATEST"
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"