mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-04-16 22:13:14 -04:00
It's just right there....
OK! That last commit fixed the delete build machines by moving that
job into it's own stage and specifying the artifact dependency. Yay!!
This commit attempts to fix the package repo building. It looks like
the RPM repo section was failing to find the .rpms because it's using
a relative path to cp, but an earlier cd had changed the cwd so the
relative path didn't exist.
I restructured the distribute packages script for stable releases
to cp the .deb and .rpm files first, and then do the various steps
which include a few cd movements.
If it works, the next commit will duplicate these changes to the
nightly release scripts as well as move the dryrun pipeline changes
to the stable and nightly pipelines.
[ci skip]
🤞
This commit is contained in:
parent
35c87238d5
commit
c95e41c6dd
@ -279,9 +279,7 @@ dryrun_package_linux:
|
||||
- build-amd64-deb
|
||||
script:
|
||||
- earthly bootstrap
|
||||
- earthly +package-linux-amd64-deb
|
||||
- earthly +package-linux-amd64-rpm
|
||||
- earthly +package-linux-arm64-deb
|
||||
- earthly +package-linux
|
||||
artifacts:
|
||||
paths:
|
||||
- target/packages/*
|
||||
|
@ -7,20 +7,25 @@ rsync --archive gitlab-runner@10.116.0.3:/srv/ $HOME/srv/
|
||||
# Delete previous versions of packages
|
||||
rm -rf $HOME/srv/apt/pool/stable/main/*.deb
|
||||
rm -rf $HOME/srv/rpm/stable/x86_64/*
|
||||
rm -rf $HOME/rpm-build-container/mount/repo/stable/x86_64/*
|
||||
|
||||
# Move build artifacts to workspaces
|
||||
echo "Copying debs to $HOME/srv/apt/pool/stable/main"
|
||||
cp target/packages/*.deb $HOME/srv/apt/pool/stable/main
|
||||
echo "Copying rpms to $HOME/rpm-build-container/mount/repo/stable/x86_64"
|
||||
cp target/packages/*x86_64.rpm $HOME/rpm-build-container/mount/repo/stable/x86_64
|
||||
|
||||
# Setup crypto
|
||||
export GNUPGHOME="$(mktemp -d ~/pgpkeys-XXXXXX)"
|
||||
cat veilid-packages-key.private | gpg --import
|
||||
gpg --armor --export admin@veilid.org > $HOME/srv/gpg/veilid-packages-key.public
|
||||
|
||||
# Copy .deb files into the workspace and generate repo files
|
||||
# Generate apt repo files
|
||||
echo "Starting deb process"
|
||||
#cd $HOME
|
||||
#tar -xf amd64-debs.tar
|
||||
#tar -xf arm64-debs.tar
|
||||
#cp *.deb $HOME/srv/apt/pool/stable/main
|
||||
echo "Copying debs to $HOME/srv/apt/pool/stable/main"
|
||||
cp target/packages/*.deb $HOME/srv/apt/pool/stable/main
|
||||
cd $HOME/srv/apt
|
||||
echo "Creating Packages file"
|
||||
dpkg-scanpackages --arch amd64 pool/stable > dists/stable/main/binary-amd64/Packages
|
||||
@ -34,12 +39,10 @@ echo "Signing Release file and creating InRelease"
|
||||
cat $HOME/srv/apt/dists/stable/Release | gpg --default-key admin@veilid.org -abs > $HOME/srv/apt/dists/stable/Release.gpg
|
||||
cat $HOME/srv/apt/dists/stable/Release | gpg --default-key admin@veilid.org -abs --clearsign > $HOME/srv/apt/dists/stable/InRelease
|
||||
|
||||
# Copy .rpm files into the workspace and generate repo files
|
||||
# Generate RPM repo files
|
||||
echo "Starting rpm process"
|
||||
#cd $HOME
|
||||
cd $HOME
|
||||
#tar -xf amd64-rpms.tar
|
||||
echo "Copying rpms to container workspace"
|
||||
cp target/packages/*x86_64.rpm $HOME/rpm-build-container/mount/repo/stable/x86_64
|
||||
echo "Copying signing material to container workspace"
|
||||
cp -R $GNUPGHOME/* $HOME/rpm-build-container/mount/keystore
|
||||
echo "Executing container actions"
|
||||
@ -75,8 +78,8 @@ rsync --archive --delete $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
||||
echo "Cleaning up the workspace"
|
||||
rm -rf $GNUPGHOME
|
||||
#rm $HOME/*.tar
|
||||
rm $HOME/*.deb
|
||||
rm $HOME/*.rpm
|
||||
#rm $HOME/*.deb
|
||||
#rm $HOME/*.rpm
|
||||
rm -rf $HOME/rpm-build-container/mount/keystore/*
|
||||
rm -rf $HOME/rpm-build-container/mount/repo/nightly/x86_64/*
|
||||
#rm -rf $HOME/rpm-build-container/mount/repo/nightly/x86_64/*
|
||||
echo "Stable packages distribution process complete"
|
Loading…
x
Reference in New Issue
Block a user