forked from pub-solar/pub.solar
teutat3s
389ede230f
event to main branch https://docs.drone.io/pipeline/docker/syntax/conditions/#by-event
34 lines
589 B
YAML
34 lines
589 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
image: denoland/deno:alpine-1.29.4
|
|
commands:
|
|
- deno task build
|
|
|
|
- name: publish
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
host: flora-6.pub.solar
|
|
port: 22
|
|
username:
|
|
from_secret: ps_ssh_user
|
|
key:
|
|
from_secret: ps_ssh_key
|
|
source:
|
|
- ./_site/*
|
|
target: /srv/www/pub.solar/
|
|
overwrite: true
|
|
strip_components: 1
|