borgmatic/.gitea/workflows/build.yaml

29 lines
770 B
YAML
Raw Permalink Normal View History

2024-03-07 01:51:49 +01:00
name: build
run-name: ${{ gitea.actor }} is building
2024-03-07 03:38:45 +01:00
on:
push:
branches: [main]
2024-03-07 01:38:34 +01:00
jobs:
test:
2024-03-07 01:38:34 +01:00
runs-on: host
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
2024-03-07 03:38:45 +01:00
- run: podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
env:
USERNAME: "${{ secrets.REGISTRY_USERNAME }}"
PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}"
2024-03-07 01:38:34 +01:00
- run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
- run: podman push "$IMAGE_NAME"