.build.yml 699 B

123456789101112131415161718192021
  1. image: guix
  2. oauth: builds.sr.ht/JOBS:RW builds.sr.ht/PROFILE:RO
  3. sources:
  4. - https://git.sr.ht/~whereiseveryone/guixrus
  5. packages:
  6. - hut
  7. tasks:
  8. - guard: |
  9. cd guixrus
  10. if [ "$BUILD_REASON" == patchset ] || [ "$(git rev-parse HEAD)" != "$(git rev-parse master)" ]; then
  11. complete-build # UNDOCUMENTED builds.sr.ht escape hatch
  12. fi
  13. - pull: |
  14. cd guixrus
  15. git fetch origin keyring:keyring
  16. set -o pipefail
  17. scripts/pull | xargs -rn1 gunzip -c
  18. - publish: |
  19. curl -s https://git.sr.ht/~whereiseveryone/website/blob/master/.build.yml \
  20. | hut builds submit -n "Publish [~whereiseveryone/website](https://git.sr.ht/~whereiseveryone/website) for build [#$JOB_ID]($JOB_URL)" -