Merge branch 'convert_cicd_to_python' into 'main'

Converting CICD from Bash to Python Scripts

See merge request veilid/veilid!372
This commit is contained in:
TC 2025-03-16 22:05:55 +00:00
commit 6f31fc7e6b
2 changed files with 23 additions and 10 deletions

View File

@ -261,8 +261,14 @@ dryrun_create_build_machines:
tags:
- build-orchestration
script:
- uv --directory scripts/cicd-python sync
- uv --directory scripts/cicd-python run veilid_release_utils.py --create-build-machine
- 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]/
@ -317,6 +323,11 @@ dryrun_build_repositories:
- cp scripts/cicd/build-orchestration/generate-stable-release.sh ~
- bash scripts/cicd/build-orchestration/distribute-stable-packages.sh
dependencies: [dryrun_package_linux]
- cp scripts/cicd/build-orchestration/rpm-repo-building/Dockerfile ~/rpm-build-container
- cp scripts/cicd/build-orchestration/rpm-repo-building/repobuild.sh ~/rpm-build-container
- cp scripts/cicd/build-orchestration/generate-stable-release.sh ~
- bash scripts/cicd/build-orchestration/distribute-stable-packages.sh
dependencies: dryrun_package_linux
rules:
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
@ -338,8 +349,10 @@ dryrun_delete_build_machines:
tags:
- build-orchestration
script:
- uv --directory scripts/cicd-python sync
- uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine
- cp config.yaml /scripts/cicd-python/config.yaml
- uv --directory scripts/cicd-python/ sync
- uv --directory scripts/cicd-python/ run veilid_release_utils.py --create-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/*