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
45 lines
772 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Version check
|
|
image: n0emis/hugo-builder
|
|
commands:
|
|
- echo "Checking Hugo version."
|
|
- hugo version
|
|
- git submodule init && git submodule update
|
|
|
|
- name: Build
|
|
image: n0emis/hugo-builder
|
|
commands:
|
|
- hugo --minify --destination /drone/src/build
|
|
- cd /drone/src/build && ls
|
|
|
|
- name: Deploy
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
host:
|
|
- pasiphae.int.goe.de.n0emis.eu
|
|
user: root
|
|
key:
|
|
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
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
|
|
...
|