1
0
jcktrue.dk/.drone.yml
Jens True 4a0fca0168
All checks were successful
continuous-integration/drone/push Build is passing
Hugo modules
2020-09-05 16:03:30 +02:00

45 lines
869 B
YAML

kind: pipeline
name: default
steps:
- name: requirements
image: alpine/git
commands:
- git submodule update --recursive --init
- name: build
image: klakegg/hugo:ext-alpine
commands:
- hugo mod get -u
- hugo-official --minify --gc --cleanDestinationDir
- name: deploy_beta
image: appleboy/drone-scp
settings:
host: jcktrue.dk
target: /home/jct/apps/http/beta.jcktrue.dk/
source: public/*
strip_components: 1
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
- name: deploy
image: appleboy/drone-scp
settings:
host: jcktrue.dk
target: /home/jct/apps/http/jcktrue.dk/
source: public/*
strip_components: 1
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
when:
event:
- promote
target:
exclude:
- beta