arch: null artifacts: [] environment: BUILD_SUBMITTER: git.sr.ht GIT_REF: refs/heads/master master: deploy@pages.sr.ht project: pages.sr.ht remote: deploy@mirror.sr.ht remote_path: /var/www/mirror.sr.ht/alpine image: alpine/3.17 packages: - rsync repositories: sr.ht: | https://mirror.sr.ht/alpine/v3.17/sr.ht/ https://mirror.sr.ht/alpine/alpine%40sr.ht.rsa.pub alpine@sr.ht.rsa.pub secrets: - fa00a8d3-7b63-42d5-8060-3bb31c3e3018 - d0adc1d4-af78-4852-920f-1134392f5d10 shell: false sources: - https://git.sr.ht/~sircmpwn/pages.sr.ht#aa82be31220261096f78fee7a1be6fc25e3dde3c - https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds tasks: - archive: | cd $project pkgver=$(~/sr.ht-apkbuilds/pkgkit pkgver) echo "pkgver=$pkgver" >> ~/.buildenv git archive \ -o ~/sr.ht-apkbuilds/sr.ht/$project/$project-$pkgver.tar.gz \ --prefix=$project-$pkgver/ HEAD - pkgkit: | cd sr.ht-apkbuilds ./pkgkit add-repo -s sr.ht ~/.abuild/alpine@sr.ht.rsa cd sr.ht/$project sed -e 's?::https://git.sr.ht/.*pkgname/.*archive.*??g' -i APKBUILD - package: | cd sr.ht-apkbuilds ./pkgkit build -cuv "$pkgver" "$project" cd ~/$project git describe --exact-match HEAD || complete-build - publish: | cd sr.ht-apkbuilds echo "StrictHostKeyChecking=no" >> ~/.ssh/config ./pkgkit upload "$remote" "$remote_path" "$project" - deploy: | ssh $master doas apk upgrade -U ssh $master doas service $project restart triggers: [] oauth: ""