add drone config
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
31ee388b0f
commit
1ca795a833
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Version check
|
||||||
|
image: jguyomard/hugo-builder
|
||||||
|
commands:
|
||||||
|
- echo "Checking Hugo version."
|
||||||
|
- hugo version
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
image: jguyomard/hugo-builder
|
||||||
|
commands:
|
||||||
|
- hugo --minify --destination /drone/src/build
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
image: jguyomard/hugo-builder
|
||||||
|
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 -6 -p 22" /drone/src/build/ root@pasiphae.int.goe.de.n0emis.eu:/var/www/n0emis.eu/ --checksum
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: ssh_key
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in New Issue