33 lines
899 B
YAML
33 lines
899 B
YAML
|
pipeline:
|
||
|
build:
|
||
|
image: ariejan/drone-hugo
|
||
|
settings:
|
||
|
hugo_version: 0.89.3
|
||
|
deploy:
|
||
|
image: appleboy/drone-scp
|
||
|
settings:
|
||
|
host: neonxp.dev
|
||
|
username: neonxp
|
||
|
key:
|
||
|
from_secret: ssh_key
|
||
|
port: 22
|
||
|
target: /var/volumes/www/neonxp.dev
|
||
|
source: public
|
||
|
notify:
|
||
|
image: appleboy/drone-telegram
|
||
|
settings:
|
||
|
token:
|
||
|
from_secret: telegram_token
|
||
|
to:
|
||
|
from_secret: telegram_user_id
|
||
|
template_vars:
|
||
|
env: package
|
||
|
app: Pkg
|
||
|
message: >
|
||
|
📝 Commit by {{commit.author}} on `{{build.tag}}`:``` {{commit.message}} ```
|
||
|
{{#success build.status}}
|
||
|
✅ build {{repo.name}}:{{commit.branch}} #{{build.number}} succeeded.
|
||
|
{{else}}
|
||
|
❌ build {{repo.name}}:{{commit.branch}} #{{build.number}} failed.
|
||
|
{{/success}}
|
||
|
timecost: {{since build.started}}
|