~rensoliemans/website

e68b65a8f29a83ac74b12042851a391d11d23fd1 — Rens Oliemans 1 year, 2 months ago 4ad3035
ci: use name of project in environment variable

This way we can hopefully keep a very similar .build.yml for different
webapps.
1 files changed, 3 insertions(+), 2 deletions(-)

M .build.yml
M .build.yml => .build.yml +3 -2
@@ 5,10 5,11 @@ sources:
  - https://git.sr.ht/~rensoliemans/website
environment:
  deploy: wp@rensoliemans.nl
  app: website
secrets:
  - 32622538-8561-4ae0-8a61-6759c4ba99a5
tasks:
  - deploy: |
      cd website
      cd $app
      sshopts="ssh -o StrictHostKeyChecking=no"
      rsync --rsh="$sshopts" -rP src/ $deploy:website/public
      rsync --rsh="$sshopts" -rP src/ $deploy:$app/public