1
0
jcktrue.dk/.drone.yml
Jens True 8164fe417a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Promotion
2020-08-16 00:09:26 +02:00

43 lines
848 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-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