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
|
2024-02-25 22:15:13 +00:00
|
|
|
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:
|
2024-04-14 13:21:34 +00:00
|
|
|
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/*
|
2024-02-25 22:15:13 +00:00
|
|
|
target: /srv/www/miom.space
|
2024-02-25 15:45:45 +00:00
|
|
|
overwrite: true
|
|
|
|
strip_components: 1
|