~rensoliemans/website

d880d0474b6350e653a422271da647362e9c68e2 — Rens Oliemans 1 year, 2 months ago 7921790
Use sourcehuts .build.yml instead of .woodpecker.yml

See https://man.sr.ht/builds.sr.ht/
2 files changed, 9 insertions(+), 13 deletions(-)

A .build.yml
D .woodpecker.yml
A .build.yml => .build.yml +9 -0
@@ 0,0 1,9 @@
image: alpine/latest
packages:
  - rsync
sources:
  - https://git.sr.ht/~rensoliemans/website
tasks:
  - cd website
  - sshopts="ssh -o StrictHostKeyChecking=no"
  - rsync --rsh="$sshopts" -rP src/ $deploy:website/public

D .woodpecker.yml => .woodpecker.yml +0 -13
@@ 1,13 0,0 @@
pipeline:
  deploy:
    image: alpine
    commands:
      - which ssh-agent || (apk update -q && apk add -q openssh-client)
      - eval $(ssh-agent -s)
      - echo "$SSH_KEY" | ssh-add -
      - mkdir -p ~/.ssh
      - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
      - ssh "$USER@$HOST" "update-webapp website | tee -a logs/update-website.log 2>&1"
    secrets: [ user, host, ssh_key ]

branches: main