miom.space/.drone.yml

34 lines
577 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:
2024-02-25 22:50:04 +00:00
- ./build.sh
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:
host: 10.7.6.1
2024-02-25 15:45:45 +00:00
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