diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index f75d8e8466..ea195ec1c6 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -6,13 +6,13 @@ on: paths: - anda/** branches: - - frawhide + - el9 pull_request: branches: - - frawhide + - el9 merge_group: branches: - - frawhide + - el9 workflow_dispatch: workflow_call: @@ -23,7 +23,7 @@ jobs: outputs: build_matrix: ${{ steps.generate_build_matrix.outputs.build_matrix }} container: - image: ghcr.io/terrapkg/builder:frawhide + image: ghcr.io/terrapkg/builder:el9 options: --cap-add=SYS_ADMIN --privileged steps: - name: Set workspace as safe @@ -40,11 +40,11 @@ jobs: strategy: matrix: pkg: ${{ fromJson(needs.manifest.outputs.build_matrix) }} - version: ["rawhide"] + version: ["9"] fail-fast: false runs-on: ${{ matrix.pkg.arch == 'aarch64' && 'ARM64' || matrix.pkg.labels['large'] && 'x86-64-lg' || 'ubuntu-latest' }} container: - image: ghcr.io/terrapkg/builder:f${{ matrix.version}} + image: ghcr.io/terrapkg/builder:el${{ matrix.version }} options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout @@ -63,15 +63,16 @@ jobs: - name: Include custom build template instead of package default run: | - cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl + cp -v mock-configs/el9.tpl /etc/mock/templates/ + cp -v mock-configs/epel9.tpl /etc/mock/templates/ - name: Build with Andaman - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg - name: Build with Andaman (alternate arch) if: | matrix.pkg.arch == 'x86_64' && matrix.pkg.labels['multilib'] - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-i386.cfg + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-el${{ matrix.version }}+epel-i386.cfg - name: Generating artifact name id: art @@ -94,7 +95,7 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }} anda-build/rpm/rpms/* + terra-el${{ matrix.version }} anda-build/rpm/rpms/* - name: Upload source packages to subatomic if: github.event_name == 'push' @@ -102,7 +103,7 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }}-source anda-build/rpm/srpm/* + terra-el${{ matrix.version }}-source anda-build/rpm/srpm/* - name: Notify Madoguchi (Success) if: success() && github.event_name == 'push' diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index e78df7b691..4f814e4ae1 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -7,16 +7,20 @@ jobs: bootstrap: strategy: matrix: - version: ["rawhide"] + version: ["9"] arch: ["x86_64", "aarch64"] fail-fast: true runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }} container: - image: registry.fedoraproject.org/fedora-minimal:${{ matrix.version }} + image: registry.access.redhat.com/ubi${{ matrix.version }}/ubi:latest options: --cap-add=SYS_ADMIN --privileged steps: - name: Install repositories - run: dnf5 install -y --setopt=install_weak_deps=False mock curl wget git-core openssl-devel cargo podman fuse-overlayfs + run: | + dnf install -y 'dnf-command(config-manager)' + dnf config-manager --set-enabled crb + dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${{ matrix.version }}.noarch.rpm + dnf install -y mock wget git-core openssl-devel cargo podman fuse-overlayfs - name: Install Anda run: cargo install anda @@ -30,15 +34,15 @@ jobs: echo "PATH=$PATH:/github/home/.cargo/bin" >> $GITHUB_ENV export PATH=$PATH:/github/home/.cargo/bin git config --global --add safe.directory "$GITHUB_WORKSPACE" - anda build -c fedora-${{ matrix.version }}-${{ matrix.arch }} anda/terra/mock-configs/pkg -p rpm + anda build -c terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg anda/terra/mock-configs/pkg -p rpm - name: Install terra-mock-configs run: dnf5 install -y anda-build/rpm/rpms/terra-mock-configs*.rpm - name: Build anda-srpm-macros - run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/terra/srpm-macros/pkg + run: anda build -c terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg anda/terra/srpm-macros/pkg - name: Build Subatomic - run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/tools/buildsys/subatomic/pkg + run: anda build -c terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg anda/tools/buildsys/subatomic/pkg - name: Install Subatomic run: dnf5 install -y ./anda-build/rpm/rpms/subatomic-*.rpm @@ -50,7 +54,7 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }} anda-build/rpm/rpms/* + terra-el${{ matrix.version }} anda-build/rpm/rpms/* - name: Upload source packages to subatomic if: github.event_name == 'push' @@ -58,4 +62,4 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }}-source anda-build/rpm/srpm/* + terra-el${{ matrix.version }}-source anda-build/rpm/srpm/* diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c922f12e82..a6e1339fe7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,12 +44,12 @@ jobs: strategy: matrix: pkg: ${{ fromJson(needs.parse.outputs.pkgs) }} - version: ["rawhide"] + version: ["9"] arch: ${{ fromJson(needs.parse.outputs.arch) }} fail-fast: false runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || needs.parse.outputs.builder && needs.parse.outputs.builder || 'ubuntu-latest' }} container: - image: ghcr.io/terrapkg/builder:f${{ matrix.version }} + image: ghcr.io/terrapkg/builder:el${{ matrix.version }} options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout @@ -68,10 +68,11 @@ jobs: - name: Include custom build template instead of package default run: | - cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl + cp -v mock-configs/el9.tpl /etc/mock/templates/ + cp -v mock-configs/epel9.tpl /etc/mock/templates/ - name: Build with Andaman - run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.arch }}.pkg + run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c mock-configs/terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg - name: Generating artifact name id: art @@ -93,14 +94,14 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }} anda-build/rpm/rpms/* + terra-el${{ matrix.version }} anda-build/rpm/rpms/* - name: Upload source packages to subatomic run: | subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }}-source anda-build/rpm/srpm/* + terra-el${{ matrix.version }}-source anda-build/rpm/srpm/* - name: Notify Madoguchi (Success) if: success() diff --git a/.github/workflows/json-build.yml b/.github/workflows/json-build.yml index 3683b3d76a..dc531b7d2f 100644 --- a/.github/workflows/json-build.yml +++ b/.github/workflows/json-build.yml @@ -11,11 +11,11 @@ jobs: strategy: matrix: pkg: ${{ fromJson(inputs.packages) }} - version: ["rawhide"] + version: ["9"] fail-fast: false runs-on: ${{ matrix.pkg.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }} container: - image: ghcr.io/terrapkg/builder:f${{ matrix.version }} + image: ghcr.io/terrapkg/builder:el${{ matrix.version }} options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout @@ -34,10 +34,11 @@ jobs: - name: Include custom build template instead of package default run: | - cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl + cp -v mock-configs/el9.tpl /etc/mock/templates/ + cp -v mock-configs/epel9.tpl /etc/mock/templates/ - name: Build with Andaman - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.pkg + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-el${{ matrix.version }}+epel-${{ matrix.pkg.arch }}.cfg - name: Generating artifact name id: art @@ -59,7 +60,7 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }} anda-build/rpm/rpms/* + terra-el${{ matrix.version }} anda-build/rpm/rpms/* - name: Upload source packages to subatomic if: github.event_name == 'push' @@ -67,7 +68,7 @@ jobs: subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - terra${{ matrix.version }}-source anda-build/rpm/srpm/* + terra-el${{ matrix.version }}-source anda-build/rpm/srpm/* - name: Notify Madoguchi (Success) if: success() diff --git a/.github/workflows/mg.sh b/.github/workflows/mg.sh index 64402b1718..3ade672a3e 100755 --- a/.github/workflows/mg.sh +++ b/.github/workflows/mg.sh @@ -7,7 +7,7 @@ export p="{\"id\":\"$5\",\"ver\":\"%v\",\"rel\":\"%r\",\"arch\":\"$4\",\"dirs\": if [[ $1 == false ]]; then d=${p/\%v/?} d=${d/\%r/?} - curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci/terra$3/builds/f -X PUT -H "Content-Type: application/json" -d $d --fail-with-body + curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci/terra-el$3/builds/f -X PUT -H "Content-Type: application/json" -d $d --fail-with-body exit 0 fi @@ -17,5 +17,5 @@ for f in anda-build/rpm/rpms/*; do r=$(lesspipe.sh $f | grep -E "Release\s*: " | sed "s@Release\s*: @@") d=${p/\%v/$v} d=${d/\%r/$r} - curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci5/terra$3/builds/$n -X PUT -H "Content-Type: application/json" -d $d --fail-with-body + curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci5/terra-el$3/builds/$n -X PUT -H "Content-Type: application/json" -d $d --fail-with-body done diff --git a/.github/workflows/update-comps.yml b/.github/workflows/update-comps.yml index 40c20d9c2a..b736a8ba3e 100644 --- a/.github/workflows/update-comps.yml +++ b/.github/workflows/update-comps.yml @@ -3,9 +3,7 @@ name: Push comps updates on: push: branches: - - frawhide - - f40 - - f39 + - el9 paths: - comps.xml workflow_dispatch: @@ -20,8 +18,7 @@ jobs: - name: Push to subatomic run: | branch=${{ github.ref_name }} - ver=${branch/f/} subatomic-cli upload-comps \ --server https://subatomic.fyralabs.com \ --token ${{ secrets.SUBATOMIC_TOKEN }} \ - "terra${ver}" comps.xml + "terra-${branch}" comps.xml