poweronoff.click/.drone.yml
Stanislav Nowogrudski 8fde80c566
All checks were successful
continuous-integration/drone/push Build is passing
use drone-scp:1.6.4 instead of latest
2023-02-13 17:22:44 +01:00

53 lines
933 B
YAML

---
kind: pipeline
type: docker
name: build and deploy the poweronoff.click hugo
trigger:
branch:
- master
clone:
disable: true
steps:
- name: clone
image: plugins/git
recursive: true
- name: build
image: plugins/hugo
settings:
hugo_version: 0.87.0
validate: true
buildDrafts: false
buildExpired: false
buildFuture: false
- name: deploy
image: appleboy/drone-scp:1.6.4
settings:
host: poweronoff.click
target: /var/www/poweronoff.click
source: public/*
rm: false
strip_components: 1
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request
- name: "send telegram notification"
image: appleboy/drone-telegram
settings:
to:
from_secret: telegram_to
token:
from_secret: telegram_token