2024-03-07 01:51:49 +01:00
|
|
|
name: build
|
2024-03-07 01:49:50 +01:00
|
|
|
run-name: ${{ gitea.actor }} is building
|
2024-03-07 01:38:34 +01:00
|
|
|
on:
|
2024-03-07 01:49:50 +01:00
|
|
|
push:
|
2024-03-07 01:52:33 +01:00
|
|
|
branches: [main]
|
2024-03-07 01:38:34 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-03-07 01:49:50 +01:00
|
|
|
test:
|
2024-03-07 01:38:34 +01:00
|
|
|
runs-on: host
|
|
|
|
|
2024-03-07 01:49:50 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: scripts/run-end-to-end-tests
|
|
|
|
|
|
|
|
docs:
|
|
|
|
needs: [test]
|
|
|
|
runs-on: host
|
|
|
|
env:
|
|
|
|
IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
|
|
|
|
|
2024-03-07 01:38:34 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: podman login --username "${{ secrets.REGISTRY_USERNAME }}" --password "${{ secrets.REGISTRY_PASSWORD }}" projects.torsion.org
|
|
|
|
- run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
|
|
|
|
- run: podman push "$IMAGE_NAME"
|