2020-12-28 11:54:51 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: update_website
|
|
|
|
|
2020-12-28 13:24:52 +00:00
|
|
|
steps:
|
2020-12-28 13:22:03 +00:00
|
|
|
- name: hugo_build
|
2020-12-28 11:54:51 +00:00
|
|
|
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
|
2020-12-28 13:22:03 +00:00
|
|
|
- name: hugo_publish
|
2020-12-28 12:10:46 +00:00
|
|
|
image: alpine:3.12.3
|
2020-12-28 12:13:42 +00:00
|
|
|
environment:
|
|
|
|
FTP_USERNAME:
|
|
|
|
from_secret: FTP_USERNAME
|
|
|
|
FTP_PASSWORD:
|
|
|
|
from_secret: FTP_PASSWORD
|
|
|
|
FTP_HOSTNAME: sv7.byethost7.org
|
2020-12-28 12:09:39 +00:00
|
|
|
commands:
|
|
|
|
- apk add lftp
|
|
|
|
- cd brainsteam
|
2020-12-28 13:27:10 +00:00
|
|
|
- lftp -e "mirror -R ./public /" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME
|