2021-06-06 14:18:43 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
2022-10-02 20:03:44 +00:00
|
|
|
|
2021-06-06 14:18:43 +00:00
|
|
|
steps:
|
2022-10-02 20:03:44 +00:00
|
|
|
- name: build
|
|
|
|
when:
|
2023-05-19 15:25:43 +00:00
|
|
|
event:
|
2022-10-02 20:08:09 +00:00
|
|
|
- push
|
|
|
|
- pull_request
|
2024-04-12 16:52:48 +00:00
|
|
|
image: denoland/deno:alpine-1.41.3
|
2022-10-02 20:03:44 +00:00
|
|
|
commands:
|
|
|
|
- deno task build
|
|
|
|
|
2021-06-06 14:18:43 +00:00
|
|
|
- name: publish
|
|
|
|
when:
|
2023-05-19 15:25:43 +00:00
|
|
|
event:
|
2022-10-02 20:08:09 +00:00
|
|
|
- push
|
2021-06-06 14:18:43 +00:00
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
2024-04-12 20:49:53 +00:00
|
|
|
host: 10.7.6.1 # nachtigall.pub.solar
|
2023-01-29 16:15:16 +00:00
|
|
|
port: 22
|
2021-06-06 14:18:43 +00:00
|
|
|
username:
|
|
|
|
from_secret: ps_ssh_user
|
|
|
|
key:
|
|
|
|
from_secret: ps_ssh_key
|
2022-02-24 20:40:28 +00:00
|
|
|
source:
|
2022-10-02 20:03:44 +00:00
|
|
|
- ./_site/*
|
2023-01-29 16:15:16 +00:00
|
|
|
target: /srv/www/pub.solar/
|
2022-02-24 22:06:59 +00:00
|
|
|
overwrite: true
|
2022-10-02 20:11:56 +00:00
|
|
|
strip_components: 1
|