Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
ci: build and deploy updated packages using apkbuilder This rigs up apkbuilder (https://git.eletrotupi.com/git/apkbuilder) and git, which simply finds out what packages have been changed, write to a file and pipe this into apkbuilder on the other end. Which in turns, will refetch the packages and build whoever have changed.
build.yml | 17 +++++++++++++++++
diff --git a/build.yml b/build.yml new file mode 100644 index 0000000000000000000000000000000000000000..84a5e391fcf4f0a0050ee93c1b7490bb2f7ab334 --- /dev/null +++ b/build.yml @@ -0,0 +1,17 @@ +image: alpine/3.14 +packages: + - rsync + - git +environment: + remote: packager@guara.eletrotupi.com +sources: + - https://git.sr.ht/~porcellis/pacotes.eletrotupi.com +secrets: + - eb365c2d-acc8-4f9b-977a-720bac44419c +tasks: + - setup: | + cd pacotes.eletrotupi.com + git diff-tree --no-commit-id --name-only -r HEAD pkgs/ | cut -d'/' -f2 | tr '\n' ' ' > ../mod + - deploy: | + echo "StrictHostKeyChecking=no" >> ~/.ssh/config + ssh $remote apkbuilder build $(cat mod)