drone dev
This commit is contained in:
parent
694cf069ad
commit
9538080cda
36
.drone.dev.yml
Normal file
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
|
12
.drone.yml
12
.drone.yml
@ -81,18 +81,6 @@ steps:
|
|||||||
recursive: true
|
recursive: true
|
||||||
delete: 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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user