drone dev

This commit is contained in:
Denys Konovalov 2023-02-01 17:35:23 +01:00
parent 694cf069ad
commit 9538080cda
2 changed files with 36 additions and 12 deletions

36
.drone.dev.yml Normal file

@ -0,0 +1,36 @@
kind: pipeline
type: docker
name: dev
steps:
- name: hugo build
image: plugins/hugo
settings:
hugo_version: 0.110.0
validate: false
extended: true
url: https://dev.cantorgymnasium.de/
commands:
- apk add --update --no-cache tzdata
- /bin/drone-hugo
- name: deploy
image: drillster/drone-rsync
settings:
hosts: [ "cantorgymnasium.de" ]
port:
from_secret: ssh_port
user: web-push
key:
from_secret: ssh_key
source: public/
target: /opt/data/webdata/gcg-website-dev/
recursive: true
delete: true
trigger:
branch:
- master
event:
- push
- cron
- rollback

@ -81,18 +81,6 @@ steps:
recursive: true
delete: true
- name: notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
to:
from_secret: telegram_room_id
when:
status:
- success
- failure
trigger:
branch:
- master