From 02552da1dec6f88f5972ac03b89824e8a247b863 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sun, 3 Apr 2022 23:53:52 +0800 Subject: [PATCH] build: add deploy --- build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.yml b/build.yml index 37b5488..f42d3d6 100644 --- a/build.yml +++ b/build.yml @@ -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 < ~/.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 -- 2.43.0