„.drone.yml“ ändern
This commit is contained in:
parent
1dff8db533
commit
aa8064e2ce
13
.drone.yml
13
.drone.yml
@ -5,20 +5,20 @@ platform:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: hugo build
|
||||||
image: plugins/hugo
|
image: plugins/hugo
|
||||||
settings:
|
settings:
|
||||||
hugo_version: 0.109.0
|
hugo_version: 0.110.0
|
||||||
validate: false
|
validate: false
|
||||||
extended: true
|
extended: true
|
||||||
url: https://gcg.gitea-pages.cantorgymnasium.de
|
url: https://dev.cantorgymnasium.de
|
||||||
commands:
|
commands:
|
||||||
- apk add --update --no-cache tzdata brotli git
|
- apk add --update --no-cache tzdata git
|
||||||
- /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
|
- git init public
|
||||||
|
|
||||||
- name: git-push
|
- name: push public
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push
|
||||||
settings:
|
settings:
|
||||||
branch: pages
|
branch: pages
|
||||||
@ -26,12 +26,13 @@ steps:
|
|||||||
from_secret: drone_remote
|
from_secret: drone_remote
|
||||||
force: true
|
force: true
|
||||||
commit: true
|
commit: true
|
||||||
|
commit_message: "[ci] website update"
|
||||||
path: public
|
path: public
|
||||||
author_name: GCG.Admin
|
author_name: GCG.Admin
|
||||||
author_email: admin@cantor-gymnasium.de
|
author_email: admin@cantor-gymnasium.de
|
||||||
|
|
||||||
|
|
||||||
- name: send telegram notification
|
- name: notification
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
token:
|
token:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user