You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
631 B
YAML
38 lines
631 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: publish
|
|
|
|
steps:
|
|
steps:
|
|
- name: fetch_submodules
|
|
image: alpine/git
|
|
commands:
|
|
- ls -lah themes/tango
|
|
- git submodule update --init
|
|
- ls -lah themes/tango
|
|
- name: build
|
|
image: plugins/hugo
|
|
settings:
|
|
hugo_version: 0.58.3
|
|
pull: always
|
|
validate: true
|
|
- name: publish
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
host:
|
|
from_secret: web_host
|
|
username:
|
|
from_secret: ssh_user
|
|
password:
|
|
from_secret: ssh_password
|
|
target:
|
|
from_secret: web_target
|
|
rm: true
|
|
strip_components: 1
|
|
source:
|
|
- public/*
|
|
trigger:
|
|
branch:
|
|
- master
|