aboutsummaryrefslogtreecommitdiff
path: root/build.yml
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-26 02:04:57 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-26 02:04:57 +0000
commit7062fc064b06b78592e77ba809990c0f1a701391 (patch)
treed68c60c8453228bead55728a9ae45975e7dc6ea2 /build.yml
parent1e2ffc2bb8e40727cfcf85121f50fa8d728591bb (diff)
downloadapkbuilds-7062fc064b06b78592e77ba809990c0f1a701391.tar.gz
apkbuilds-7062fc064b06b78592e77ba809990c0f1a701391.tar.bz2
apkbuilds-7062fc064b06b78592e77ba809990c0f1a701391.zip
feat: Add working build
For now it only builds a single project ... as there is only one project to be build.
Diffstat (limited to 'build.yml')
-rw-r--r--build.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/build.yml b/build.yml
new file mode 100644
index 0000000..4829f1a
--- /dev/null
+++ b/build.yml
@@ -0,0 +1,23 @@
+image: alpine/3.15
+packages:
+ - openssl
+ - rsync
+ - alpine-sdk
+environment:
+ deploy: builds@gabrielgio.me
+ target: artifacts.gabrielgio.me/repo/
+sources:
+ - https://git.sr.ht/~gabrielgio/apkbuilds
+secrets:
+ - 008c4f67-b864-47f8-9790-cd32f2ae8516
+ - df9d57f4-43bb-4084-a748-dbf02848bdd0
+tasks:
+ - setup: |
+ echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf
+ - build: |
+ cd apkbuilds/midr
+ abuild -r
+ - deploy: |
+ sshopts="ssh -o StrictHostKeyChecking=no"
+ rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target
+