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:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
image: denoland/deno:alpine
|
|
|
|
commands:
|
|
|
|
- deno run -A https://deno.land/x/lume@v1.6.4/install.ts
|
|
|
|
- deno task build
|
|
|
|
|
2021-06-06 14:18:43 +00:00
|
|
|
- name: publish
|
|
|
|
when:
|
|
|
|
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 20:40:28 +00:00
|
|
|
source:
|
2022-10-02 20:03:44 +00:00
|
|
|
- ./_site/*
|
2022-04-30 20:57:48 +00:00
|
|
|
target: /srv/pub.solar/
|
2022-02-24 22:06:59 +00:00
|
|
|
overwrite: true
|