miom.space/.drone.yml

34 lines
592 B
YAML
Raw Normal View History

2023-02-27 15:48:08 +00:00
kind: pipeline
type: docker
2024-02-25 15:45:45 +00:00
name: default
2023-02-27 15:48:08 +00:00
steps:
2024-02-25 15:45:45 +00:00
- name: build
when:
2023-02-27 15:48:08 +00:00
event:
2024-02-25 15:45:45 +00:00
- push
- pull_request
image: denoland/deno:alpine-1.40.2
2024-02-25 15:45:45 +00:00
commands:
- deno task build
2023-02-27 15:48:08 +00:00
2024-02-25 15:45:45 +00:00
- name: publish
when:
event:
- push
branch:
- main
image: appleboy/drone-scp
2023-02-27 15:48:08 +00:00
settings:
2024-02-25 15:45:45 +00:00
host: nachtigall.pub.solar
port: 22
2023-02-27 15:48:08 +00:00
username:
2024-02-25 15:45:45 +00:00
from_secret: ps_ssh_user
key:
from_secret: ps_ssh_key
source:
- ./_site/*
target: /srv/www/miom.space
2024-02-25 15:45:45 +00:00
overwrite: true
strip_components: 1