mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-06 05:34:44 -04:00
Further adventures in CICD evolving [ci dryrun]
This commit is contained in:
parent
b0fc3b28bf
commit
dcbcf28e30
2 changed files with 12 additions and 6 deletions
|
@ -263,6 +263,10 @@ dryrun_create_build_machines:
|
||||||
script:
|
script:
|
||||||
- uv --directory scripts/cicd-python sync
|
- uv --directory scripts/cicd-python sync
|
||||||
- uv --directory scripts/cicd-python run veilid_release_utils.py --create-build-machine
|
- 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:
|
rules:
|
||||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||||
|
|
||||||
|
@ -337,7 +341,9 @@ dryrun_delete_build_machines:
|
||||||
- dryrun_deploy_repos
|
- dryrun_deploy_repos
|
||||||
tags:
|
tags:
|
||||||
- build-orchestration
|
- build-orchestration
|
||||||
|
- dryrun_create_build_machines]
|
||||||
script:
|
script:
|
||||||
|
- cp config.json /scripts/cicd-python/config.json
|
||||||
- uv --directory scripts/cicd-python sync
|
- uv --directory scripts/cicd-python sync
|
||||||
- uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine
|
- uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine
|
||||||
rules:
|
rules:
|
||||||
|
|
|
@ -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
|
# Copy .deb files into the workspace and generate repo files
|
||||||
echo "Starting deb process"
|
echo "Starting deb process"
|
||||||
cd $HOME
|
#cd $HOME
|
||||||
tar -xf amd64-debs.tar
|
#tar -xf amd64-debs.tar
|
||||||
tar -xf arm64-debs.tar
|
#tar -xf arm64-debs.tar
|
||||||
cp *.deb $HOME/srv/apt/pool/stable/main
|
cp *.deb $HOME/srv/apt/pool/stable/main
|
||||||
cd $HOME/srv/apt
|
cd $HOME/srv/apt
|
||||||
echo "Creating Packages file"
|
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
|
# Copy .rpm files into the workspace and generate repo files
|
||||||
echo "Starting rpm process"
|
echo "Starting rpm process"
|
||||||
cd $HOME
|
#cd $HOME
|
||||||
tar -xf amd64-rpms.tar
|
#tar -xf amd64-rpms.tar
|
||||||
echo "Copying rpms to container workspace"
|
echo "Copying rpms to container workspace"
|
||||||
cp *x86_64.rpm $HOME/rpm-build-container/mount/repo/stable/x86_64
|
cp *x86_64.rpm $HOME/rpm-build-container/mount/repo/stable/x86_64
|
||||||
echo "Copying signing material to container workspace"
|
echo "Copying signing material to container workspace"
|
||||||
|
@ -72,7 +72,7 @@ rsync --archive --delete $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
||||||
# Cleanup
|
# Cleanup
|
||||||
echo "Cleaning up the workspace"
|
echo "Cleaning up the workspace"
|
||||||
rm -rf $GNUPGHOME
|
rm -rf $GNUPGHOME
|
||||||
rm $HOME/*.tar
|
#rm $HOME/*.tar
|
||||||
rm $HOME/*.deb
|
rm $HOME/*.deb
|
||||||
rm $HOME/*.rpm
|
rm $HOME/*.rpm
|
||||||
rm -rf $HOME/rpm-build-container/mount/keystore/*
|
rm -rf $HOME/rpm-build-container/mount/keystore/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue