„.drone.yml“ ändern
This commit is contained in:
parent
fe168d581b
commit
6f3d9e4247
41
.drone.yml
41
.drone.yml
@ -13,36 +13,9 @@ steps:
|
|||||||
extended: true
|
extended: true
|
||||||
url: https://dev.cantorgymnasium.de
|
url: https://dev.cantorgymnasium.de
|
||||||
commands:
|
commands:
|
||||||
- apk add --update --no-cache tzdata git
|
- apk add --update --no-cache tzdata
|
||||||
- /bin/drone-hugo
|
- /bin/drone-hugo
|
||||||
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -print0 | xargs -0 gzip -9 -f -k
|
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -print0 | xargs -0 gzip -9 -f -k
|
||||||
- git init public
|
|
||||||
|
|
||||||
- name: push public
|
|
||||||
image: appleboy/drone-git-push
|
|
||||||
settings:
|
|
||||||
branch: pages
|
|
||||||
remote:
|
|
||||||
from_secret: drone_remote
|
|
||||||
force: true
|
|
||||||
commit: true
|
|
||||||
commit_message: "[ci] website update"
|
|
||||||
path: public
|
|
||||||
author_name: GCG.Admin
|
|
||||||
author_email: admin@cantor-gymnasium.de
|
|
||||||
|
|
||||||
|
|
||||||
- name: notification
|
|
||||||
image: appleboy/drone-telegram
|
|
||||||
settings:
|
|
||||||
token:
|
|
||||||
from_secret: telegram_token
|
|
||||||
to:
|
|
||||||
from_secret: telegram_room_id
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
@ -58,6 +31,18 @@ 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