build.yaml 842 B

12345678910111213141516171819202122232425262728293031
  1. name: build
  2. run-name: ${{ gitea.actor }} is building
  3. on:
  4. push:
  5. branches: [main]
  6. pull_request:
  7. branches: [main]
  8. jobs:
  9. test:
  10. runs-on: host
  11. steps:
  12. - uses: actions/checkout@v4
  13. - run: scripts/run-end-to-end-tests
  14. docs:
  15. needs: [test]
  16. runs-on: host
  17. if: gitea.event_name == 'push'
  18. env:
  19. IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
  20. steps:
  21. - uses: actions/checkout@v4
  22. - run: podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
  23. env:
  24. USERNAME: "${{ secrets.REGISTRY_USERNAME }}"
  25. PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}"
  26. - run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
  27. - run: podman push "$IMAGE_NAME"