xd0.de Platform Documentation Imprint, Privacy Policy and Terms and Conditions https://xd0.de/doc/
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.

58 lines
1.2 KiB

4 years ago
kind: pipeline
name: default
steps:
- name: submodules
image: alpine/git
commands:
- apk update
- apk add git-lfs
- git submodule update --init --recursive
- git submodule update --recursive --remote
- git lfs fetch --all
- name: build
image: plugins/hugo
settings:
hugo_version:
url: https://xd0.de/doc/
validate: true
4 years ago
- name: deploy
image: alpine/git
4 years ago
# secrets: [ sftp_destination, sftp_passwd ]
environment:
SFTP_DESTINATION:
from_secret: sftp_destination
SFTP_PASSWD:
from_secret: sftp_passwd
4 years ago
commands:
4 years ago
- ls public
4 years ago
- pwd
4 years ago
# - printenv
- echo $SFTP_DESTINATION
4 years ago
# - sftp $SFTP_DESTINATION <<< $'put -pR public/*'
- apk update && apk add lftp
- lftp -u "my_webapp__3,$SFTP_PASSWD" -p 22 -e "set sftp:auto-confirm yes && cd /www && put /etc/hostname; quit" sftp://172.16.85.20
4 years ago
#- name: deploy
# image: appleboy/drone-scp
# settings:
# host: 172.16.85.15
# target: /var/www/langer-rosenkranz.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:
# - main
# event:
# exclude:
# - pull_request