-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (43 loc) · 1.44 KB
/
build-disk-imgs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "Debugging"
on:
pull_request:
schedule:
- cron: '0 */12 * * *'
env:
REGISTRY: quay.io
REPOSITORY: flightctl
jobs:
build-and-push-containers:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
flavor: [centos, fedora, rhel]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and push disk images
run: |
sudo apt install -y qemu-user qemu-user-static podman
mkdir bootc-images
cp .github/workflow-scripts/buildah-build-and-push-manifest.sh bootc-images
URL=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/flightctl-agent-${{ matrix.flavor }}
for ARCH in amd64 arm64; do
mkdir -p storage/$ARCH
for FORMAT in qcow2 raw; do
echo ".github/workflow-scripts/bib-build.sh $ARCH $FORMAT $URL:bootstrap" >> cmds
done
done
source cmds
podman run \
--rm \
-v $(pwd)/bootc-images:/bootc-images \
-e "BUILDAH_USERNAME=${{ secrets.QUAY_FLIGHTCTL_INFRA_ROBOT_USERNAME }}" \
-e "BUILDAH_PASSWORD=${{ secrets.QUAY_FLIGHTCTL_INFRA_ROBOT_PASSWORD }}" \
-e "BUILDAH_URL=$URL:bootc" \
quay.io/buildah/stable:v1.36.0 \
/bootc-images/buildah-build-and-push-manifest.sh