mirror of
https://github.com/YunoHost/lxd_img_builder.git
synced 2024-09-03 19:56:55 +02:00
21 lines
791 B
Text
21 lines
791 B
Text
|
|
# wget -O gitlab-runner-bookworm.deb https://packages.gitlab.com/runner/gitlab-runner/debian/pool/bookworm/main/g/gitlab-runner/gitlab-runner_15.10.0_amd64.deb
|
|
# wget -O gitlab-runner-bullseye.deb https://packages.gitlab.com/runner/gitlab-runner/debian/pool/bullseye/main/g/gitlab-runner/gitlab-runner_15.10.0_amd64.deb
|
|
|
|
for DIST in bullseye bookworm
|
|
do
|
|
ar x gitlab-runner-$DIST.deb
|
|
bunzip2 data.tar.bz2
|
|
tar --delete -f data.tar ./usr/lib
|
|
bunzip2 -z data.tar
|
|
|
|
gzip -d control.tar.gz
|
|
tar -xf control.tar ./md5sums
|
|
sed -i '/lib\/gitlab-runner/d' md5sums
|
|
tar -uf control.tar ./md5sums
|
|
rm md5sums
|
|
gzip control.tar
|
|
|
|
ar rcv gitlab-runner-$DIST-light.deb debian-binary control.tar.gz data.tar.bz2
|
|
rm debian-binary control.tar.gz data.tar.bz2
|
|
done
|