From 8126691ac71ab21868c7c2cd7798d295ee32863c Mon Sep 17 00:00:00 2001 From: Liora Milbaum Date: Mon, 6 Nov 2023 09:28:35 +0200 Subject: [PATCH] Migrate builder source files to centos/centos-boot-infra --- .github/workflows/builder.yml | 41 ---------------------------------- builder/Containerfile | 5 ----- builder/build.sh | 21 ----------------- builder/coreos-continuous.repo | 10 --------- 4 files changed, 77 deletions(-) delete mode 100644 .github/workflows/builder.yml delete mode 100644 builder/Containerfile delete mode 100755 builder/build.sh delete mode 100644 builder/coreos-continuous.repo diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml deleted file mode 100644 index 1e95877..0000000 --- a/.github/workflows/builder.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: builder - -on: - workflow_dispatch: - push: - paths: - - .github/workflows/builder.yml - - builder/** - -env: - REGISTRY: ghcr.io - QUAY_ORG: centos-boot - -jobs: - build-image: - runs-on: ubuntu-latest - - steps: - - run: echo IMAGE=${{ env.REGISTRY }}/$(echo ${{ github.repository_owner }}/builder | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV - - name: Install qemu dependency - run: | - sudo apt-get update - sudo apt-get install -y qemu-user-static - - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Login to ghcr.io - run: buildah login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }} - - name: Login to quay.io - run: buildah login --username ${{ secrets.QUAY_USER }} --password ${{ secrets.QUAY_PASSWORD }} quay.io - - name: Build - uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12 - with: - image: ${{ env.IMAGE }} - tags: latest - containerfiles: ./builder/Containerfile - archs: s390x, arm64, amd64, ppc64le - context: builder - - name: Push to ghcr.io - run: buildah manifest push --all ${{ env.IMAGE }} docker://${{ env.IMAGE }} - - name: Push To quay.io - run: buildah manifest push --all ${{ env.IMAGE }} docker://quay.io/${{ env.QUAY_ORG }}/builder diff --git a/builder/Containerfile b/builder/Containerfile deleted file mode 100644 index 63c2139..0000000 --- a/builder/Containerfile +++ /dev/null @@ -1,5 +0,0 @@ -# This image contains the baseline tools to build bootable base images. -FROM quay.io/centos/centos:stream9@sha256:c1768e42666a0b8953636b7d2636f0156814bc930dbd722a7da8d3985ae3da8a -COPY coreos-continuous.repo /etc/yum.repos.d -COPY . /src -RUN /src/build.sh && cd / && rm /src -rf diff --git a/builder/build.sh b/builder/build.sh deleted file mode 100755 index c3b19a2..0000000 --- a/builder/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -xeuo pipefail - -pkginstall() { - dnf -y install "$@" -} - -pkginstall dnf-utils -dnf config-manager --set-enabled crb -# Sadly there's no EPEL for s390x so we just hardcode this for now, it's noarch. -dnf -y install https://kojipkgs.fedoraproject.org//packages/distribution-gpg-keys/1.98/1.el9/noarch/distribution-gpg-keys-1.98-1.el9.noarch.rpm - -# rpm-ostree for builds, and need skopeo to do the container backend -pkginstall rpm-ostree skopeo -# For derived container builds -pkginstall buildah -# And a rust toolchain -pkginstall cargo openssl-devel - -# Build tools -pkginstall selinux-policy-targeted osbuild crypto-policies-scripts sudo diff --git a/builder/coreos-continuous.repo b/builder/coreos-continuous.repo deleted file mode 100644 index 5bc7047..0000000 --- a/builder/coreos-continuous.repo +++ /dev/null @@ -1,10 +0,0 @@ -[copr:copr.fedorainfracloud.org:group_CoreOS:continuous] -name=Copr repo for continuous owned by @CoreOS -baseurl=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/centos-stream-9-$basearch/ -type=rpm-md -skip_if_unavailable=True -gpgcheck=1 -gpgkey=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/pubkey.gpg -repo_gpgcheck=0 -enabled=1 -enabled_metadata=1