aboutsummaryrefslogtreecommitdiff
path: root/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'build.yml')
-rw-r--r--build.yml20
1 files changed, 9 insertions, 11 deletions
diff --git a/build.yml b/build.yml
index 7b2adf7..f1aa372 100644
--- a/build.yml
+++ b/build.yml
@@ -9,9 +9,9 @@ packages:
- rsync
- alpine-sdk
environment:
- deploy: builds@gabrielgio.me
- target: artifacts.gabrielgio.me/repo/
- packages: ["genpass", "midr"]
+ remote: builds@gabrielgio.me
+ remote_path: /var/www/artifacts.gabrielgio.me/repo/
+ packages: []
sources:
- https://git.sr.ht/~gabrielgio/apkbuilds
secrets:
@@ -19,14 +19,12 @@ secrets:
- df9d57f4-43bb-4084-a748-dbf02848bdd0
tasks:
- setup: |
- echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf
+ cd apkbuilds
+ ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa
- build: |
cd apkbuilds
- for pkg in "${packages[@]}"; do
- cd "$pkg"
- abuild -r
- cd ..
- done
+ ./pkgkit build -cu "${packages[@]}"
- deploy: |
- sshopts="ssh -o StrictHostKeyChecking=no"
- rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target
+ cd apkbuilds
+ echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+ ./pkgkit upload "$remote" "$remote_path" "${packages[@]}"