~xdavidwu/systemd-apkbuilds

02552da1dec6f88f5972ac03b89824e8a247b863 — xdavidwu 2 years ago bae9a8e
build: add deploy
1 files changed, 11 insertions(+), 1 deletions(-)

M build.yml
M build.yml => build.yml +11 -1
@@ 7,6 7,8 @@ repositories:
packages:
  - alpine-sdk
environment:
  source: systemd-apkbuilds
  release: edge
  repo: systemd
  key: Egloga-Alpine-AUTOMATED-CI-61864ad2.rsa
  package: systemd


@@ 14,6 16,7 @@ sources:
  - https://git.xdavidwu.link/~xdavidwu/systemd-apkbuilds
secrets:
  - f288c06f-779e-4a47-8d35-b9b51283fbc7
  - 777c5ba2-1eb8-441f-b111-c8c608419a57
tasks:
  - prepare: |
      cat <<EOF > ~/.abuild/abuild.conf


@@ 21,5 24,12 @@ tasks:
      PACKAGER_PRIVKEY="$HOME/.abuild/$key"
      EOF
  - build: |
      cd "systemd-apkbuilds/$package"
      cd "$source/$package"
      abuild -rK
  - deploy: |
      arch=$(uname -m)
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      for file in "packages/$source/$arch"/*.apk; do
        name=$(basename "$file")
        ssh deploy@alpine.xdavidwu.link "$release/$repo/$arch/$name" < "$file"
      done