You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kwantumkwestie/.woodpecker.yml

14 lines
436 B

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" "nohup update-kwantumkwestie >> logs/update-kwantumkwestie.log 2>&1 &"
secrets: [ user, host, ssh_key ]
branches: main