Skip to content

Commit 536ea85

Browse files
committed
add 9 compose scripts
1 parent 473ef23 commit 536ea85

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

cron/stable-9

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
3+
FROMMAIL="Compose Tracker <[email protected]>"
4+
rm -rf /etc/pungi-prod-9
5+
pushd /etc/pungi-prod-9/scripts/compose || { echo "Pungi directory not found"; exit; }
6+
git pull
7+
ret_val=$?
8+
if [ "$ret_val" -ne 0 ]; then
9+
echo "Git pull failed for pungi config" | mutt -e "set from=\"$FROMMAIL\"" \
10+
-e 'set envelope_from=yes' \
11+
-s "Git pull on /etc/pungi-prod-9 failed" \
12+
13+
exit 1
14+
fi
15+
bash produce-9-full.sh
16+
ret_val=$?
17+
popd || { echo "Could not go back to the previous directory"; exit; }
18+
19+
if [ "$ret_val" -eq 0 ]; then
20+
pushd /root/toolkit/sync || { echo "Toolkit directory not found"; exit; }
21+
RLVER=9 bash minor-release-sync-to-staging.sh
22+
popd || { echo "Could not go back to previous directory"; exit; }
23+
fi

cron/stable-updates-9

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
3+
FROMMAIL="Compose Tracker <[email protected]>"
4+
export RLVER=9
5+
source "/root/toolkit/sync/common"
6+
rm -rf /etc/pungi-prod-9
7+
git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b "r${REVISION}" /etc/pungi-prod-9
8+
rm -rf /mnt/compose/9_metadata
9+
git clone https://git.rockylinux.org/rocky/rocky-module-metadata.git -b r9 /mnt/compose/9_metadata
10+
ret_val=$?
11+
if [ "$ret_val" -ne 0 ]; then
12+
echo "Git pull failed for prod pungi config" | mutt -e "set from=\"$FROMMAIL\"" \
13+
-e 'set envelope_from=yes' \
14+
-s "Git pull on /etc/pungi-prod failed" \
15+
16+
exit 1
17+
fi
18+
pushd /etc/pungi-prod-9/scripts || { echo "Cron: Failed to change directory"; exit 1; }
19+
bash updates-9-full.sh
20+
ret_val=$?
21+
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
22+
23+
if [ "$ret_val" -eq 0 ]; then
24+
pushd /root/toolkit/sync || { echo "Cron: Failed to change directory"; exit 1; }
25+
RLVER=9 bash sync-to-staging.sh Rocky-devel
26+
RLVER=9 bash sync-to-staging.sh Extras
27+
RLVER=9 bash sync-to-staging.sh Rocky
28+
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
29+
30+
pushd /mnt/repos-staging/mirror/pub/rocky/${REVISION} || { echo "Cron: Directory doesn't exist"; exit 1; }
31+
python3 /usr/local/bin/apollo_tree -p $(pwd) \
32+
-n "Rocky Linux ${REVISION} \$arch" \
33+
-i extras \
34+
-i images \
35+
-i isos \
36+
-i live \
37+
-i metadata \
38+
-i plus \
39+
-i devel \
40+
-i SAP \
41+
-i SAPHANA
42+
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
43+
44+
pushd /root/toolkit/sync || { echo "Cron: Failed to change directory"; exit 1; }
45+
RLVER=9 bash sign-repos-only.sh
46+
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
47+
fi

0 commit comments

Comments
 (0)