wiki/.drone.yml

40 lines
913 B
YAML
Raw Permalink Normal View History

2021-03-08 08:35:32 +01:00
kind: pipeline
name: default
platform:
os: linux
2023-06-04 20:04:10 +02:00
arch: amd64
2021-03-08 08:35:32 +01:00
steps:
- name: build
2023-12-27 19:12:06 +01:00
image: debian:12-slim
2021-03-08 08:35:32 +01:00
commands:
2023-06-04 20:27:57 +02:00
- apt -qq update
2023-12-27 19:34:38 +01:00
- apt -qq install -y -q rsync pandoc wget git
- git submodule update --init --recursive
2023-12-27 19:33:07 +01:00
- wget -O /tmp/hugo.deb -nv https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_extended_0.121.1_linux-amd64.deb
- dpkg --install /tmp/hugo.deb
2023-06-04 20:17:52 +02:00
- hugo version
2021-03-08 08:35:32 +01:00
- hugo --minify
- name: deploy
image: appleboy/drone-scp
settings:
host: 192.168.4.1
2024-03-03 16:21:30 +01:00
target: /opt/${DRONE_REPO_OWNER}/www
strip_components: 1
2021-03-08 08:35:32 +01:00
source: public/*
username: ${DRONE_REPO_OWNER}
key:
from_secret: ssh_key
passphrase:
from_secret: ssh_passphrase
2024-03-03 16:39:20 +01:00
environment:
PLUGIN_DEBUG: "true"
2021-03-08 08:35:32 +01:00
when:
branch:
- master
event:
exclude:
- pull_request