DroneCI Config
This commit is contained in:
parent
9881a02c2c
commit
48735fd180
1 changed files with 36 additions and 0 deletions
36
.drone.yml
Normal file
36
.drone.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
|
||||
- name: Version check
|
||||
image: klakegg/hugo:ext-alpine-ci
|
||||
commands:
|
||||
- echo "Checking Hugo version."
|
||||
- hugo version
|
||||
- hugo mod graph
|
||||
- name: Submodules
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git submodule update --init --recursive
|
||||
- name: Build
|
||||
image: klakegg/hugo:ext-alpine-ci
|
||||
commands:
|
||||
- hugo --destination /drone/src/build
|
||||
- name: Upload
|
||||
image: drillster/drone-rsync
|
||||
commands:
|
||||
- eval `ssh-agent -s`
|
||||
- echo "$SSH\_KEY" | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- echo -e "Host \*\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config
|
||||
- rsync -rv -e "ssh -p 22" /drone/src/build/ drone@server4.unhb.de:/tmp/test --checksum
|
||||
environment:
|
||||
SSH\_KEY:
|
||||
from\_secret: drone\_ssh\_key
|
Loading…
Reference in a new issue