This commit is contained in:
nazunalika 2021-06-25 19:40:21 -07:00
parent 27950c833d
commit 25afb1bd97
Signed by: label
GPG key ID: 6735C0E1BD65D048
2 changed files with 0 additions and 57 deletions

View file

@ -1,26 +0,0 @@
#!/bin/bash
export LC_ALL=C
CONFIG="rocky-8.conf"
TARGET_DIR="/mnt/koji/compose/8"
NIGHTLY=""
SKIP_PHASES="--skip-phase=productimg"
DEST=$(pwd)
DATE=$(date "%Y%m%d")
SHORT="Rocky"
RELEASE="8"
RELEASE_TITLE="8"
COMPSFILE="comps-rocky-8.3.xml"
TMPDIR=$(mktemp -d /tmp/rockyrc.$DATE.XXXX)
RSYNCPREFIX="sudo -u syncer"
RSYNCTARGET="/rocky-8-stage/$RELEASE"
LOCATION="https://mirror.rockylinux.org$RSYNCTARGET"
# OSTREE FUTURE
OSTREESRCREPO="/mnt/koji/compose/ostree/repo/"
OSTREEDESTREPO="/mnt/koji/ostree/repo/"
OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
# OSTREE END
# Run pungi?
# Run rsync?

31
rc.sh
View file

@ -1,31 +0,0 @@
#!/bin/bash
export LC_ALL=C
LABEL=$1
shift
CONFIG="rocky-8.conf"
TARGET_DIR="/tmp/koji/compose/8"
NIGHTLY=""
SKIP_PHASES="--skip-phase=productimg"
DEST=$(pwd)
DATE=$(date "%Y%m%d")
COMPSFILE="comps-rocky-8.3.xml"
TMPDIR=$(mktemp -d /tmp/rockyrc.$DATE.XXXX)
pushd $TMPDIR
git clone https://git.rockylinux.org/rocky-comps.git && {
pushd rocky-comps
make "${COMPSFILE}"
cp "${COMPSFILE}" $DEST/
popd
}
popd
## Fedora seems to use fedmsg, is it needed?
#CMD="pungi-koji --notification-script=/usr/bin/pungi-fedmsg-notification --notification-script=pungi-wait-for-signed-ostree-handler --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES --label=$LABEL"
CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES --label=$LABEL"
if [ -z "$COMPOSE_ID" ]; then
CMD="$CMD --target-dir=$TARGET_DIR"
else
CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID"
fi
time $CMD "$@"