~earnestma/aptpkg-pkgs

7894ff0209efaaca0e02f133867cc58c30bfacdc — earnest ma 7 months ago 026a249
.build.yml: Add CI
1 files changed, 39 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +39 -0
@@ 0,0 1,39 @@
image: ubuntu/hirsute

repositories:
  aptpkg.earne.link: https://aptpkg.earne.link/ubuntu hirsuite main

packages:
  - aptpkg-stable
  - 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

  - 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)"