You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
939 B
40 lines
939 B
image: ubuntu/hirsute
|
|
|
|
packages:
|
|
- build-essential
|
|
- dpkg
|
|
- dpkg-dev
|
|
- scdoc
|
|
- rsync
|
|
- unzip
|
|
|
|
sources:
|
|
- https://git.sr.ht/~earnestma/aptpkg-pkgs
|
|
|
|
environment:
|
|
repdomain: root@aptpkg.earne.link
|
|
reppath: /var/www/aptpkg/ubuntu
|
|
|
|
secrets:
|
|
- a661ec50-8fe4-46d3-9277-96396186af84
|
|
|
|
tasks:
|
|
- skip-ci: |
|
|
cd aptpkg-pkgs
|
|
if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]; then
|
|
complete-build
|
|
fi
|
|
|
|
- install-aptpkg: |
|
|
curl -fsSL https://git.sr.ht/~earnestma/aptpkg-pkgs/blob/main/add.sh | sudo -E bash -
|
|
sudo apt -yqq install aptpkg-stable
|
|
|
|
- build: |
|
|
cd aptpkg-pkgs
|
|
aptpkg --auto
|
|
|
|
- deploy: |
|
|
cd aptpkg-pkgs
|
|
rsync -raz -e "ssh -p 69 -o StrictHostKeyChecking=no" --progress dist/ $repdomain:$reppath/incoming
|
|
ssh -o StrictHostKeyChecking=no $repdomain "(cd $reppath; reprepro -Vb . includedeb hirsuite incoming/*.deb && rm incoming/*.deb)"
|