Skip to content

Commit

Permalink
Updated deploy.sh script to include RHEL 10 scheduled pipeline from o…
Browse files Browse the repository at this point in the history
…sbuild-composer.
  • Loading branch information
narmaku committed Dec 12, 2024
1 parent bb425de commit f38bed2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ prepare-rhel-internal-runners:
- RUNNER:
# NOTE: 1 runner prepares for all arches b/c subsequent jobs download
# artifacts from all previous jobs and the last one wins
- aws/rhel-9.6-nightly-x86_64
- aws/rhel-10.0-nightly-x86_64
INTERNAL_NIGHTLY: [ "internal" ]
INTERNAL_NETWORK: [ "true" ]
Expand Down
11 changes: 7 additions & 4 deletions schutzbot/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ function get_last_passed_commit {
base_curl="curl --header PRIVATE-TOKEN:${GITLAB_API_TOKEN}"

# To get the schedule id use the ../pipeline_schedule endpoint
if [[ ${VERSION_ID%.*} == "8" ]]; then
# RHEL 8 scheduled pipeline id
schedule_id="233735"
else
if [[ ${VERSION_ID%.*} == "9" ]]; then
# RHEL 9 scheduled pipeline id
schedule_id="233736"
elif [[ ${VERSION_ID%.*} == "10" ]]; then
# RHEL 10 scheduled pipeline id (FYI - it was used for RHEL 8 before)
schedule_id="233735"
else
echo "No scheduled pipeline defined for RHEL $VERSION_ID"
exit 1
fi

# Last executed pipeline ID
Expand Down

0 comments on commit f38bed2

Please sign in to comment.