brainsteam.co.uk/.drone.yml

17 lines
403 B
YAML
Raw Normal View History

2020-12-28 11:54:51 +00:00
kind: pipeline
name: update_website
steps:
- name: hugo_build
image: alombarte/hugo
commands:
2020-12-28 11:56:31 +00:00
- git submodule init
2020-12-28 11:57:19 +00:00
- git submodule update
2020-12-28 11:55:42 +00:00
- cd brainsteam
2020-12-28 12:09:39 +00:00
- hugo
- name: hugo_publish
images: alpine:3.12.3
commands:
- apk add lftp
- cd brainsteam
- lftp -e "mirror -R ./public /" -u ${FTP_USERNAME},${FTP_PASSWORD} $FTP_HOSTNAME