You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
772 B
YAML

4 years ago
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: Version check
image: n0emis/hugo-builder
4 years ago
commands:
- echo "Checking Hugo version."
- hugo version
4 years ago
- git submodule init && git submodule update
4 years ago
- name: Build
image: n0emis/hugo-builder
4 years ago
commands:
- hugo --minify --destination /drone/src/build
4 years ago
- cd /drone/src/build && ls
4 years ago
- name: Deploy
image: appleboy/drone-scp
settings:
host:
- pasiphae.int.goe.de.n0emis.eu
4 years ago
user: root
key:
4 years ago
from_secret: ssh_key
proxy_host: kallisto.int.goe.de.n0emis.eu
proxy_username: ci
proxy_key:
from_secret: ssh_key
source: /drone/src/build/*
target: /var/www/n0emis.eu/
strip_components: 3
4 years ago
trigger:
branch:
- main
...