1
0
jcktrue.dk/.drone.yml

43 lines
825 B
YAML
Raw Normal View History

2020-02-25 09:27:35 +00:00
kind: pipeline
name: default
steps:
- name: requirements
image: alpine/git
commands:
2020-02-27 21:42:33 +00:00
- git submodule update --recursive --init
2020-02-28 10:43:31 +00:00
2020-02-25 09:27:35 +00:00
- name: build
image: klakegg/hugo:ext-alpine
commands:
2020-05-10 16:45:17 +00:00
- hugo-official --minify --gc --cleanDestinationDir
2020-02-28 10:43:31 +00:00
- name: deploy_beta
2020-02-28 10:40:33 +00:00
image: appleboy/drone-scp
settings:
host: jcktrue.dk
2020-03-21 10:52:55 +00:00
target: /home/jct/apps/http/beta.jcktrue.dk/
2020-02-28 10:40:33 +00:00
source: public/*
strip_components: 1
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
2020-02-28 10:43:31 +00:00
- name: deploy
2020-02-28 10:40:33 +00:00
image: appleboy/drone-scp
settings:
host: jcktrue.dk
2020-03-21 10:52:55 +00:00
target: /home/jct/apps/http/jcktrue.dk/
2020-02-28 10:40:33 +00:00
source: public/*
strip_components: 1
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
when:
branch:
include:
- master