~allie/website-2020 unlisted

4eee863b826e3d71d37d681735ac81c422c9e6ea — Alfie Pates 5 months ago 1f2434a
srht build manifest
1 files changed, 26 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +26 -0
@@ 0,0 1,26 @@
image: debian/stable
packages:
        - pipenv
sources:
        - https://git.sr.ht/~allie/website-2020
environment:
        deploy_user: srhtdeploy
        deploy_host: alfiepates.me
        deploy_dir: "/srv/website2020"
secrets: 
        - d3291552-fb55-4172-97ae-fb5332f2293b
tasks: 
        - setup: | 
                cd website-2020
                pipenv install
        - build: |
                cd website-2020
                make publish
        - deploy: |
                cd website-2020
                # Let's only do this if we're on the deploy branch
                if [ "$(git rev-parse HEAD)" != "$(git rev-parse deploy)" ]; then \
                        complete-build; \
                fi
                sshopts="ssh -o StrictHostKeyChecking=no"
                rsync --rsh="$sshopts" -r --quiet --delete-after output/* $deploy_user@$deploy_host:$deploy_dir