~xdavidwu/systemd-apkbuilds

bae9a8e012bf970791b640d62cc28dc6108efb02 — xdavidwu 2 years ago de993c9
add sourcehut scripts for building
2 files changed, 31 insertions(+), 0 deletions(-)

A build.yml
A submit-build
A build.yml => build.yml +25 -0
@@ 0,0 1,25 @@
image: alpine/edge
repositories:
  systemd: >
    https://alpine.xdavidwu.link/edge/systemd
    https://alpine.xdavidwu.link/pubkeys/Egloga-Alpine-AUTOMATED-CI-61864ad2.rsa.pub
    Egloga-Alpine-AUTOMATED-CI-61864ad2.rsa.pub
packages:
  - alpine-sdk
environment:
  repo: systemd
  key: Egloga-Alpine-AUTOMATED-CI-61864ad2.rsa
  package: systemd
sources:
  - https://git.xdavidwu.link/~xdavidwu/systemd-apkbuilds
secrets:
  - f288c06f-779e-4a47-8d35-b9b51283fbc7
tasks:
  - prepare: |
      cat <<EOF > ~/.abuild/abuild.conf
      PACKAGER="builds.xdavidwu.link <xdavidwuph@gmail.com>"
      PACKAGER_PRIVKEY="$HOME/.abuild/$key"
      EOF
  - build: |
      cd "systemd-apkbuilds/$package"
      abuild -rK

A submit-build => submit-build +6 -0
@@ 0,0 1,6 @@
#!/bin/sh
set -e

pkg=$(basename "$1")
. "$pkg"/APKBUILD
yq ".environment.package = \"$pkg\"" < build.yml | ssh builds@builds.xdavidwu.link "submit -n$pkgname\ $pkgver-$pkgrel"