@@ -49,13 +49,17 @@ jobs:
4949 run : |
5050 echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
5151
52+ - name : Set EDPM_* env vars
53+ run : |
54+ echo "EDPM_BOOTC_REPO=${{ env.imageregistry }}/${{ env.imagenamespace }}/edpm-bootc" >> $GITHUB_ENV
55+ echo "EDPM_BOOTC_TAG=${{ env.latesttag }}" >> $GITHUB_ENV
56+
5257 - name : Build output/yum.repos.d
5358 id : build-output-yum-repos-d
5459 run : |
55- export EDPM_BOOTC_TAG=${latesttag}
5660 podman run --rm -it -v .:/bootc:rw,z quay.io/centos/centos:stream9 /bin/bash -c "cd bootc; dnf -y install make; make output/yum.repos.d"
5761
58- - name : Build and tag
62+ - name : Build and tag edpm-bootc container image
5963 id : buildah-build-edpm-bootc
6064 uses : redhat-actions/buildah-build@v2
6165 with :
6569 ./bootc/Containerfile.centos9
6670 context : bootc
6771
68- - name : Push edpm-bootc To ${{ env.imageregistry }}
72+ - name : Push edpm-bootc container image to ${{ env.imageregistry }}
6973 id : push-edpm-bootc
7074 uses : redhat-actions/push-to-registry@v2
7175 with :
7983 run : |
8084 echo "Image pushed to ${{ steps.push-edpm-bootc.outputs.registry-paths }}"
8185 echo "Image digest: ${{ steps.push-edpm-bootc.outputs.digest }}"
86+
87+ - name : bootc-image-builder edpm-bootc qcow2 image
88+ id : edpm-bootc-qcow2-image-builder
89+ run : |
90+ # workaround https://github.com/containers/podman/issues/21683
91+ sudo apt install -y sqlite3
92+ echo "update DBConfig set GraphDriver = 'overlay' where GraphDriver = '';" | sudo sh -c '(cd /var/lib/containers/storage && sqlite3 db.sql)'
93+ make output
94+ # Pull the edpm-bootc container image as sudo. Previous build commands
95+ # don't use sudo.
96+ sudo podman pull ${{ env.imageregistry }}/${{ env.imagenamespace }}/edpm-bootc:${{ env.latesttag }}
97+ make edpm-bootc.qcow2-no-build
98+ make package-cp-deps
99+
100+ - name : Build and tag edpm-bootc qcow2 container image
101+ id : buildah-build-edpm-bootc-qcow2
102+ uses : redhat-actions/buildah-build@v2
103+ with :
104+ image : edpm-bootc
105+ tags : ${{ env.latesttag }}-qcow2 ${{ github.sha }}-qcow2
106+ containerfiles : |
107+ ./bootc/output/Containerfile.image
108+ context : bootc/output
109+ build-args : |
110+ IMAGE_NAME=edpm-bootc
111+
112+ - name : Push edpm-bootc qcow2 container image to ${{ env.imageregistry }}
113+ id : push-edpm-bootc-qcow2
114+ uses : redhat-actions/push-to-registry@v2
115+ with :
116+ image : edpm-bootc
117+ tags : ${{ env.latesttag }}-qcow2
118+ registry : ${{ env.imageregistry }}/${{ env.imagenamespace }}
119+ username : ${{ secrets.QUAY_USERNAME }}
120+ password : ${{ secrets.QUAY_PASSWORD }}
121+
122+ - name : Print qcow2 image url and digest
123+ run : |
124+ echo "Image pushed to ${{ steps.push-edpm-bootc-qcow2.outputs.registry-paths }}"
125+ echo "Image digest: ${{ steps.push-edpm-bootc-qcow2.outputs.digest }}"
0 commit comments