Browse Source

update ci

main
Hendrik Langer 4 years ago
parent
commit
15f3eac612
  1. 44
      .drone.yml

44
.drone.yml

@ -22,22 +22,38 @@ steps:
HUGO_DESTINATION: public
- name: deploy
image: appleboy/drone-scp
settings:
host: 172.16.85.15
target: /var/www/h3ndrik.de
source: public/*
# rm: true
strip_components: 1
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
image: alpine/git
environment:
SFTP_PASSWD:
from_secret: sftp_passwd
commands:
# - sftp $SFTP_DESTINATION <<< $'put -pR public/*'
- apk update && apk add lftp
- lftp -u "my_webapp,$SFTP_PASSWD" -p 22 -e "set sftp:auto-confirm yes && cd /www && mirror -R --delete-first public/ /www; quit" sftp://172.16.85.20
when:
branch:
- master
- main
event:
exclude:
- pull_request
#- name: deploy
# image: appleboy/drone-scp
# settings:
# host: 172.16.85.15
# target: /var/www/h3ndrik.de
# source: public/*
## rm: true
# strip_components: 1
# username:
# from_secret: ssh_username
# password:
# from_secret: ssh_password
# port:
# from_secret: ssh_port
# when:
# branch:
# - master
# event:
# exclude:
# - pull_request

Loading…
Cancel
Save