See if it will build a qcow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push] | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-24.04] | |
arch: ["", "-arm"] | |
runs-on: ${{ matrix.os }}${{ matrix.arch }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
set -xe | |
echo "building: {{github.ref_name}}-$(uname -i)" | |
cd layers/ | |
docker build -t l1 spire-agent/ --build-arg=BASE=quay.io/almalinuxorg/almalinux-bootc:9 | |
docker build -t l2 spire-ha-agent/ --build-arg=BASE=l1 | |
docker build -t ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i) cloud-init/ --build-arg=BASE=l2 | |
docker push ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i) | |
sudo apt install podman -y | |
mkdir -p output | |
sudo podman pull ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i) | |
sudo podman run \ | |
--rm \ | |
-i \ | |
--privileged \ | |
--security-opt label=type:unconfined_t \ | |
-v $(pwd)/output:/output \ | |
-v /var/lib/containers/storage:/var/lib/containers/storage \ | |
quay.io/centos-bootc/bootc-image-builder:latest \ | |
--type qcow2 \ | |
--rootfs xfs \ | |
--local \ | |
ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i) | |