From 2bac589ca6d0aa95e467df349ba4f608805510fe Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 31 Jul 2022 16:12:16 +0000 Subject: fix: Add repo properly --- build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build.yml') diff --git a/build.yml b/build.yml index 1b6aa14..7b2adf7 100644 --- a/build.yml +++ b/build.yml @@ -1,4 +1,9 @@ image: alpine/3.15 +repositories: + gabrielgio.me: > + https://artifacts.gabrielgio.me/repo/ + https://artifacts.gabrielgio.me/repo/mail%40gabrielgio.me-62ddc4dc.rsa.pub + mail@gabrielgio.me-62ddc4dc.rsa.pub packages: - openssl - rsync @@ -6,7 +11,7 @@ packages: environment: deploy: builds@gabrielgio.me target: artifacts.gabrielgio.me/repo/ - packages: ["midr", "genpass"] + packages: ["genpass", "midr"] sources: - https://git.sr.ht/~gabrielgio/apkbuilds secrets: @@ -16,12 +21,12 @@ tasks: - setup: | echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf - build: | + cd apkbuilds for pkg in "${packages[@]}"; do - cd apkbuilds/"$pkg" + cd "$pkg" abuild -r cd .. done - deploy: | sshopts="ssh -o StrictHostKeyChecking=no" rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target - -- cgit v1.2.3