~rep/anglegrinding

7ff802fbe96a3c733ce5b0cea15e011a70df2431 — rep 3 years ago 8b682ef
Add Sourcehut build manifest for deployment
1 files changed, 18 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +18 -0
@@ 0,0 1,18 @@
image: alpine/edge
packages:
  - hugo
  - rsync
environment:
  target: rep@scribe.anglegrinding.com
sources:
  - https://git.sr.ht/~rep/anglegrinding
secrets:
  - 12eb4fb5-b85f-436c-9452-89d4c3d4970e
tasks:
  - build: |
      cd anglegrinding
      hugo
  - deploy: |
      cd anglegrinding
      ssh="ssh -o StrictHostKeyChecking=no"
      rsync -a --rsh="$ssh" public/ $target:/var/www/htdocs/anglegrinding/