pub.solar/.drone.yml

35 lines
638 B
YAML
Raw Normal View History

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:
2022-10-02 20:08:09 +00:00
events:
- push
- pull_request
2022-10-02 20:03:44 +00:00
image: denoland/deno:alpine
commands:
2022-10-03 16:54:26 +00:00
- deno run -A https://deno.land/x/lume@v1.12.0/install.ts
2022-10-02 20:03:44 +00:00
- deno task build
2021-06-06 14:18:43 +00:00
- name: publish
when:
2022-10-02 20:08:09 +00:00
events:
- push
2021-06-06 14:18:43 +00: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
source:
2022-10-02 20:03:44 +00:00
- ./_site/*
target: /srv/pub.solar/
2022-02-24 22:06:59 +00:00
overwrite: true
2022-10-02 20:11:56 +00:00
strip_components: 1