Skip to content

Bump spire-ha-agent #16

Bump spire-ha-agent

Bump spire-ha-agent #16

Workflow file for this run

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 l3 spiffe-step-ssh/ --build-arg=BASE=l2
docker build -t ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i) cloud-init/ --build-arg=BASE=l3
docker push ghcr.io/kfox1111/bootc-layers:kubevirt-${{github.ref_name}}-$(uname -i)
sudo apt install podman sqlite3 -y
mkdir -p output
sudo sqlite3 /var/lib/containers/storage/db.sql << EOF
update DBConfig set GraphDriver = 'overlay' where GraphDriver = '';
EOF
sudo busctl
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)
docker build -t ghcr.io/kfox1111/bootc-layers:kubevirt-ci-${{github.ref_name}}-$(uname -i) -f ../Dockerfile.ci output/
docker push ghcr.io/kfox1111/bootc-layers:kubevirt-ci-${{github.ref_name}}-$(uname -i)