build-image.yml 672 B

123456789101112131415161718192021
  1. # FIXME: currently just builds it, eventually, should use qemu to try to run
  2. # the image (potentially as a separate action)
  3. name: build-prawnos-image
  4. on: [push]
  5. jobs:
  6. build:
  7. name: build
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: checkout project
  11. uses: actions/checkout@master
  12. - name: build image
  13. run: docker run --mount type=bind,source=$PWD,target=/PrawnOS
  14. --privileged=true -v/dev:/dev debian:buster
  15. /bin/bash /PrawnOS/tests/build-image.sh "$GITHUB_SHA"
  16. - name: publish image
  17. uses: actions/upload-artifact@v2
  18. with:
  19. name: image
  20. path: "PrawnOS-Shiba-c201-git-*.img"