~dvn/gnunet-apkbuilds

1f1eeeede642dfc239ddf5a24ab2e37462b96258 — Devan Carpenter 1 year, 10 months ago 3afb1fb
build: make build run on commit; remove copypasta
2 files changed, 8 insertions(+), 29 deletions(-)

A .build.yml
D build.yml
A .build.yml => .build.yml +8 -0
@@ 0,0 1,8 @@
image: alpine/3.10
packages:
sources:
  - https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
tasks:
  - build: |
      cd sr.ht-apkbuilds
      ./pkgkit build -Rcu "${packages[@]}"

D build.yml => build.yml +0 -29
@@ 1,29 0,0 @@
image: alpine/3.10
repositories:
  sr.ht: >
    https://mirror.sr.ht/alpine/v3.10/sr.ht/
    https://mirror.sr.ht/alpine/alpine%40sr.ht.rsa.pub
    alpine@sr.ht.rsa.pub
packages:
  - openssl
  - rsync
environment:
  remote: deploy@mirror.sr.ht
  remote_path: /var/www/mirror.sr.ht/alpine
  packages: []
sources:
  - https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
secrets:
  - fa00a8d3-7b63-42d5-8060-3bb31c3e3018 # ssh deploy key
  - d0adc1d4-af78-4852-920f-1134392f5d10 # package signing key
tasks:
  - setup: |
      cd sr.ht-apkbuilds
      ./pkgkit add-repo -s sr.ht ~/.abuild/alpine@sr.ht.rsa
  - build: |
      cd sr.ht-apkbuilds
      ./pkgkit build -Rcu "${packages[@]}"
  - deploy: |
      cd sr.ht-apkbuilds
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      ./pkgkit upload "$remote" "$remote_path" "${packages[@]}"