Further adventures in CICD evolving

Set the create build machine job to save the python config.json as an
artifact so that it can be used by the delete build machines job to
have the current machine's ID.

I do not know where the artifact pops into existence in subsequent jobs,
either in its original path or in the project root so tweaks will likely
be needed.
This commit is contained in:
TC Johnson 2025-03-16 17:17:03 -05:00
parent b0fc3b28bf
commit 9091991ad7
2 changed files with 11 additions and 6 deletions

View File

@ -263,6 +263,9 @@ dryrun_create_build_machines:
script:
- uv --directory scripts/cicd-python sync
- uv --directory scripts/cicd-python run veilid_release_utils.py --create-build-machine
artifacts:
paths: scripts/cicd-python/config.json
expire_in: 6 hours
rules:
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
@ -338,8 +341,10 @@ dryrun_delete_build_machines:
tags:
- build-orchestration
script:
- cp config.json /scripts/cicd-python/config.json
- uv --directory scripts/cicd-python sync
- uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine
dependencies: [dryrun_create_build_machines]
rules:
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/

View File

@ -15,9 +15,9 @@ gpg --armor --export admin@veilid.org > $HOME/srv/gpg/veilid-packages-key.public
# Copy .deb files into the workspace and generate repo files
echo "Starting deb process"
cd $HOME
tar -xf amd64-debs.tar
tar -xf arm64-debs.tar
#cd $HOME
#tar -xf amd64-debs.tar
#tar -xf arm64-debs.tar
cp *.deb $HOME/srv/apt/pool/stable/main
cd $HOME/srv/apt
echo "Creating Packages file"
@ -34,8 +34,8 @@ cat $HOME/srv/apt/dists/stable/Release | gpg --default-key admin@veilid.org -abs
# Copy .rpm files into the workspace and generate repo files
echo "Starting rpm process"
cd $HOME
tar -xf amd64-rpms.tar
#cd $HOME
#tar -xf amd64-rpms.tar
echo "Copying rpms to container workspace"
cp *x86_64.rpm $HOME/rpm-build-container/mount/repo/stable/x86_64
echo "Copying signing material to container workspace"
@ -72,7 +72,7 @@ rsync --archive --delete $HOME/srv/* gitlab-runner@10.116.0.3:/srv
# Cleanup
echo "Cleaning up the workspace"
rm -rf $GNUPGHOME
rm $HOME/*.tar
#rm $HOME/*.tar
rm $HOME/*.deb
rm $HOME/*.rpm
rm -rf $HOME/rpm-build-container/mount/keystore/*