ci.yml 795 B

1234567891011121314151617181920212223242526272829303132
  1. name: CI
  2. on:
  3. - pull_request
  4. - push
  5. jobs:
  6. test:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. branch:
  11. - latest-stable
  12. - edge
  13. steps:
  14. - uses: actions/checkout@v3
  15. - name: Build rootfs tarball using script from file
  16. run: |
  17. sudo ./alpine-make-rootfs \
  18. --branch ${{ matrix.branch }} \
  19. --packages 'ruby sqlite' \
  20. --script-chroot \
  21. example-$(date +%Y%m%d).tar.gz -- ./example/install.sh
  22. - name: Build rootfs using script from stdin
  23. run: |
  24. cd example
  25. sudo ../alpine-make-rootfs \
  26. --branch ${{ matrix.branch }} \
  27. --packages 'ruby sqlite' \
  28. --script-chroot \
  29. rootfs - < install.sh