hadr24/.drone.yml

37 lines
787 B
YAML
Raw Normal View History

2023-02-05 22:00:01 +01:00
---
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
2023-02-05 22:16:34 +01:00
- rsync -rv -e "ssh -p 22" /drone/src/build/ root@server4.unhb.de:/tmp/test/ --checksum
2023-02-05 22:00:01 +01:00
environment:
SSH\_KEY:
from\_secret: drone\_ssh\_key