brainsteam.co.uk/.drone.yml

38 lines
927 B
YAML

kind: pipeline
name: update_website
steps:
- name: hugo_build
image: alombarte/hugo
when:
branch:
- main
commands:
- git submodule init
- git submodule update
- cd brainsteam
- hugo
- name: hugo_publish
#image: alpine:3.12.3
image: appleboy/drone-git-push
settings:
remote_name: origin
branch: master
local_ref: master
path: brainsteam/public
commit: true
commit_message: update build from hugo
author_name: DroneCI
# when:
# branch:
# - main
# environment:
# FTP_USERNAME:
# from_secret: FTP_USERNAME
# FTP_PASSWORD:
# from_secret: FTP_PASSWORD
# FTP_HOSTNAME: sv7.byethost7.org
# commands:
# - apk add lftp
# - cd brainsteam
# - lftp -e "mirror -R ./public /" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME