hadr23/.drone.yml
Stefan H bbc58cb4c6
Some checks failed
continuous-integration/drone/push Build is failing
Adjustment of port and folder
2023-02-06 13:04:06 +01:00

37 lines
No EOL
802 B
YAML

---
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 22222" /drone/src/build/ root@server4.unhb.de:/htdocs/ --checksum
environment:
SSH_KEY:
from_secret: drone_ssh_key