diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index e09ec21..35fc585 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -1,14 +1,23 @@ name: publish-image on: - push: branches: - - main + - main + schedule: - - cron: '35 */4 * * *' + - cron: "35 */4 * * *" + + pull_request: + branches: + - main + workflow_dispatch: +env: + REGISTRY: ghcr.io + IMAGE_NAME: centos/centos-bootc-dev + jobs: build-and-push-image: runs-on: ubuntu-latest @@ -17,10 +26,10 @@ jobs: matrix: os: [fedora, centos] include: - - os: fedora - version: eln - - os: centos - version: stream9 + - os: fedora + version: eln + - os: centos + version: stream9 steps: - name: Install qemu dependency @@ -33,17 +42,18 @@ jobs: - name: Login to quay.io run: buildah login --username ${{ secrets.QUAY_USER }} --password ${{ secrets.QUAY_PASSWORD }} quay.io + if: ${{ github.event_name == 'push' }} - name: Build id: build uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12 with: - image: quay.io/centos-boot/${{ matrix.os }}-tier-1-dev + image: quay.io/centos-boot/${{ matrix.os }}-bootc-dev tags: ${{ matrix.version }} containerfiles: ./${{ matrix.version }}-dev/Containerfile archs: amd64 context: ${{ matrix.version }}-dev - name: Push To quay.io - #run: buildah manifest push --all ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }} run: buildah push ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }} + if: ${{ github.event_name == 'push' }} diff --git a/README.md b/README.md index aa4bb5a..45372ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# centos-boot-dev +# centos-bootc-dev -Development images for [centos-boot](https://github.com/CentOS/centos-boot). +Development images for [centos-bootc](https://github.com/CentOS/centos-bootc). ## Badges diff --git a/eln-dev/Containerfile b/eln-dev/Containerfile index 5f032e3..8582b39 100644 --- a/eln-dev/Containerfile +++ b/eln-dev/Containerfile @@ -1,4 +1,4 @@ -FROM quay.io/centos-boot/fedora-tier-1:eln +FROM quay.io/centos-bootc/fedora-bootc:eln COPY *.repo /etc/yum.repos.d/ RUN dnf --disablerepo='*' --enablerepo=copr-coreos-continuous --enablerepo=copr-rhcontainerbot-bootc -y distro-sync && \ dnf clean all && rm -rf /var/* && \