2021-06-06 16:18:43 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
2022-10-02 22:03:44 +02:00
|
|
|
|
2021-06-06 16:18:43 +02:00
|
|
|
steps:
|
2022-10-02 22:03:44 +02:00
|
|
|
- name: build
|
|
|
|
when:
|
2022-10-02 22:08:09 +02:00
|
|
|
events:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2022-10-20 16:14:05 +02:00
|
|
|
image: denoland/deno:alpine-1.26.2
|
2022-10-02 22:03:44 +02:00
|
|
|
commands:
|
|
|
|
- deno task build
|
|
|
|
|
2021-06-06 16:18:43 +02:00
|
|
|
- name: publish
|
|
|
|
when:
|
2022-10-02 22:08:09 +02:00
|
|
|
events:
|
|
|
|
- push
|
2021-06-06 16:18:43 +02:00
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: pub.solar
|
|
|
|
port: 2020
|
|
|
|
username:
|
|
|
|
from_secret: ps_ssh_user
|
|
|
|
key:
|
|
|
|
from_secret: ps_ssh_key
|
2022-02-24 21:40:28 +01:00
|
|
|
source:
|
2022-10-02 22:03:44 +02:00
|
|
|
- ./_site/*
|
2022-04-30 22:57:48 +02:00
|
|
|
target: /srv/pub.solar/
|
2022-02-24 23:06:59 +01:00
|
|
|
overwrite: true
|
2022-10-02 22:11:56 +02:00
|
|
|
strip_components: 1
|