1234567891011121314151617181920212223242526272829303132 |
- name: build
- run-name: ${{ gitea.actor }} is building
- on:
- push:
- branches: [main]
- jobs:
- test:
- 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
- steps:
- - uses: actions/checkout@v4
- - run: podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
- env:
- USERNAME: "${{ secrets.REGISTRY_USERNAME }}"
- PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}"
- - run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
- - run: podman push "$IMAGE_NAME"
- - run: mkdir borgmatic-docs
- - run: podman export borgmatic-docs | tar xf - --strip-components 4 --directory borgmatic-docs usr/share/nginx/html
- - run: tar cfz borgmatic-docs.tar.gz borgmatic-docs
- - run: curl --user "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" --upload-file borgmatic-docs.tar.gz https://projects.torsion.org/api/packages/borgmatic-collective/generic/borgmatic-docs/$(head --lines=1 NEWS)/borgmatic-docs.tar.gz
|