Skip to content

Commit

Permalink
ci: remove cs10
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He authored and yih-redhat committed Feb 20, 2025
1 parent e96a000 commit ce2f164
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 305 deletions.
102 changes: 0 additions & 102 deletions .github/workflows/centos-stream-10.yml

This file was deleted.

100 changes: 0 additions & 100 deletions .github/workflows/trigger-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

env:
COMPOSE_URL_CS9: https://odcs.stream.centos.org/production/
COMPOSE_URL_CS10: https://odcs.stream.centos.org/stream-10/production/

jobs:
check-compose:
Expand Down Expand Up @@ -59,58 +58,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check CentOS Stream 10 compose
id: check_compose_id_cs10
run: |
CURRENT_COMPOSE_CS10=$(curl -s "${COMPOSE_URL_CS10}/" | grep -ioE ">CentOS-Stream-10-.*/<" | tr -d '>/<' | tail -1)
curl -s ${COMPOSE_URL_CS10}/${CURRENT_COMPOSE_CS10}/STATUS --output STATUS_CS10
STATUS_CS10=$(cat STATUS_CS10)
if [[ "$STATUS_CS10" == "FINISHED" ]]; then
COMPOSE_ID_CS10=$CURRENT_COMPOSE_CS10
TESTED_COMPOSE_CS10=( $( cat compose/compose.cs10 ) )
if [[ " ${TESTED_COMPOSE_CS10[*]} " =~ "$COMPOSE_ID_CS10" ]]; then
COMPOSE_ID_CS10="false"
fi
else
COMPOSE_ID_CS10="false"
fi
if [[ "$COMPOSE_ID_CS10" != "false" ]]; then
gh pr list -R virt-s1/rhel-edge --state open --json title --jq '.[].title' > PR_LIST_CS10
PR_LIST_CS10=$(cat PR_LIST_CS10)
if [[ $PR_LIST_CS10 == *"$COMPOSE_ID_CS10"* ]]; then
echo "pr_running_cs10=true" >> $GITHUB_OUTPUT
else
echo "pr_running_cs10=false" >> $GITHUB_OUTPUT
fi
OSBUILD_VERSION_CS10=$(curl -s "${COMPOSE_URL_CS10}/${COMPOSE_ID_CS10}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">osbuild-[0-9].*<" | tr -d "><")
OSBUILD_COMPOSER_VERSION_CS10=$(curl -s "${COMPOSE_URL_CS10}/${COMPOSE_ID_CS10}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">osbuild-composer-[0-9].*<" | tr -d "><")
COMPOSER_CLI_VERSION_CS10=$(curl -s "${COMPOSE_URL_CS10}/${COMPOSE_ID_CS10}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">weldr-client-[0-9].*<" | tr -d "><")
echo "osbuild_version_cs10=$OSBUILD_VERSION_CS10" >> $GITHUB_OUTPUT
echo "osbuild_composer_version_cs10=$OSBUILD_COMPOSER_VERSION_CS10" >> $GITHUB_OUTPUT
echo "composer_cli_version_cs10=$COMPOSER_CLI_VERSION_CS10" >> $GITHUB_OUTPUT
else
echo "osbuild_version_cs10=Null" >> $GITHUB_OUTPUT
echo "osbuild_composer_version_cs10=Null" >> $GITHUB_OUTPUT
echo "composer_cli_version_cs10=Null" >> $GITHUB_OUTPUT
fi
echo "cs10_compose=$COMPOSE_ID_CS10" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

outputs:
cs9_compose: ${{ steps.check_compose_id_cs9.outputs.cs9_compose }}
osbuild_version_cs9: ${{ steps.check_compose_id_cs9.outputs.osbuild_version_cs9 }}
osbuild_composer_version_cs9: ${{ steps.check_compose_id_cs9.outputs.osbuild_composer_version_cs9 }}
composer_cli_version_cs9: ${{ steps.check_compose_id_cs9.outputs.composer_cli_version_cs9 }}
pr_running_cs9: ${{ steps.check_compose_id_cs9.outputs.pr_running_cs9 }}
cs10_compose: ${{ steps.check_compose_id_cs10.outputs.cs10_compose }}
osbuild_version_cs10: ${{ steps.check_compose_id_cs10.outputs.osbuild_version_cs10 }}
osbuild_composer_version_cs10: ${{ steps.check_compose_id_cs10.outputs.osbuild_composer_version_cs10 }}
composer_cli_version_cs10: ${{ steps.check_compose_id_cs10.outputs.composer_cli_version_cs10 }}
pr_running_cs10: ${{ steps.check_compose_id_cs10.outputs.pr_running_cs10 }}

centos-stream-9:
needs: check-compose
Expand Down Expand Up @@ -166,56 +119,3 @@ jobs:
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
body: /test-cs9

centos-stream-10:
needs: check-compose
if: ${{ needs.check-compose.outputs.cs10_compose != 'false' && needs.check-compose.outputs.pr_running_cs10 == 'false' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Add new compose id in compose.cs10
run: |
compose_id="${{ needs.check-compose.outputs.cs10_compose }}"
echo $compose_id >> compose/compose.cs10
cat compose/compose.cs10
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "${{ needs.check-compose.outputs.cs10_compose }} - ${{ steps.date.outputs.date }}"
committer: cloudkitebot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: cpr
branch-suffix: random
delete-branch: true
title: "${{ needs.check-compose.outputs.cs10_compose }} - ${{ steps.date.outputs.date }}"
labels: auto-merge,CentOS-Stream-10
body: |
CentOS Stream 10 compose ${{ needs.check-compose.outputs.cs10_compose }}
- Date: ${{ steps.date.outputs.date }}
- Compose URL: "${{ env.COMPOSE_URL_CS10 }}/${{ needs.check-compose.outputs.cs10_compose }}"
- Packages:
- ${{ needs.check-compose.outputs.osbuild_version_cs10 }}
- ${{ needs.check-compose.outputs.osbuild_composer_version_cs10 }}
- ${{ needs.check-compose.outputs.composer_cli_version_cs10 }}
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: rebase

- name: Add a comment to trigger test workflow
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.PAT }}
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
body: /test-cs10
6 changes: 0 additions & 6 deletions minimal-raw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ case "${ID}-${VERSION_ID}" in
MINIMAL_RAW_FILENAME=disk.raw.xz
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"centos-10")
OS_VARIANT="centos-stream10"
MINIMAL_RAW_DECOMPRESSED=disk.raw
MINIMAL_RAW_FILENAME=disk.raw.xz
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"fedora-41")
OS_VARIANT="fedora-unknown"
MINIMAL_RAW_DECOMPRESSED=disk.raw
Expand Down
9 changes: 0 additions & 9 deletions ostree-8-to-9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ case "${ID}-${VERSION_ID}" in
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
SYSROOT_RO="true"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
PARENT_REF="centos/9/${ARCH}/edge"
OS_VARIANT="centos-stream9"
DISTRO="centos-9"
BOOT_LOCATION="https://odcs.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
SYSROOT_RO="true"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
5 changes: 0 additions & 5 deletions ostree-ami-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ case "${ID}-${VERSION_ID}" in
SYSROOT_RO="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
SYSROOT_RO="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
13 changes: 0 additions & 13 deletions ostree-fdo-aio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,6 @@ case "${ID}-${VERSION_ID}" in
BLUEPRINT_USER="simple"
OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
PARENT_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream9"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
IMAGE_NAME="image.raw.xz"
SYSROOT_RO="true"
ANSIBLE_USER=fdouser
FDO_USER_ONBOARDING="true"
USER_IN_BLUEPRINT="true"
BLUEPRINT_USER="simple"
OS_NAME="rhel-edge"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
5 changes: 0 additions & 5 deletions ostree-fdo-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ case "${ID}-${VERSION_ID}" in
OS_VARIANT="centos-stream9"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
6 changes: 0 additions & 6 deletions ostree-fdo-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ case "${ID}-${VERSION_ID}" in
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
OS_NAME="rhel-edge"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
6 changes: 0 additions & 6 deletions ostree-ignition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ case "${ID}-${VERSION_ID}" in
OS_NAME="rhel-edge"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
OS_NAME="rhel-edge"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
11 changes: 0 additions & 11 deletions ostree-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ case "${ID}-${VERSION_ID}" in
DIRS_FILES_CUSTOMIZATION="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
NEW_MKKSISO="true"
CONTAINER_PUSHING_FEAT="true"
EMBEDDED_CONTAINER="true"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
SYSROOT_RO="true"
DIRS_FILES_CUSTOMIZATION="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
"fedora-41")
CONTAINER_IMAGE_TYPE=fedora-iot-container
INSTALLER_IMAGE_TYPE=fedora-iot-installer
Expand Down
10 changes: 0 additions & 10 deletions ostree-raw-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@ case "${ID}-${VERSION_ID}" in
SYSROOT_RO="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
PARENT_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
ADD_SSSD="true"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
USER_IN_RAW="true"
SYSROOT_RO="true"
ANSIBLE_OS_NAME="rhel-edge"
;;
"fedora-41")
CONTAINER_TYPE=fedora-iot-container
RAW_TYPE=iot-raw-image
Expand Down
14 changes: 0 additions & 14 deletions ostree-simplified-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,6 @@ case "${ID}-${VERSION_ID}" in
NO_FDO="true"
OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
PARENT_REF="centos/10/${ARCH}/edge"
OS_VARIANT="centos-stream10"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
IMAGE_NAME="image.raw.xz"
SYSROOT_RO="true"
ANSIBLE_USER=fdouser
FDO_USER_ONBOARDING="true"
USER_IN_BLUEPRINT="true"
BLUEPRINT_USER="simple"
NO_FDO="true"
OS_NAME="rhel-edge"
;;
"fedora-"*)
OSTREE_REF="fedora/${VERSION_ID}/${ARCH}/iot"
PARENT_REF="fedora/${VERSION_ID}/${ARCH}/iot"
Expand Down
6 changes: 0 additions & 6 deletions ostree-vsphere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ case "${ID}-${VERSION_ID}" in
GUEST_ID_DC70="centos9_64Guest"
OS_NAME="rhel-edge"
;;
"centos-10")
OSTREE_REF="centos/10/${ARCH}/edge"
# GUEST_ID_DC67="centos8_64Guest"
GUEST_ID_DC70="centos9_64Guest"
OS_NAME="rhel-edge"
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down
Loading

0 comments on commit ce2f164

Please sign in to comment.