2019-04-15 14:47:51 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
2019-04-16 21:26:37 +02:00
|
|
|
workspace:
|
|
|
|
base: /blog
|
|
|
|
|
2019-04-15 14:47:51 +02:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: submodules
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update --recursive --remote
|
|
|
|
|
|
|
|
- name: build and upload
|
|
|
|
image: xsteadfastx/blog
|
2019-04-16 21:22:43 +02:00
|
|
|
pull: always
|
2019-04-15 14:47:51 +02:00
|
|
|
environment:
|
|
|
|
FTP_PASS:
|
|
|
|
from_secret: ftp_pass
|
|
|
|
commands:
|
|
|
|
- sudo chown -R blog:blog /blog
|
|
|
|
- make ftp_upload
|