2023-01-14 09:07:12 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-01-27 18:53:34 +01:00
|
|
|
name: prod
|
2023-01-14 09:07:12 +00:00
|
|
|
steps:
|
2023-02-08 15:53:37 +01:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2023-01-22 14:06:28 +01:00
|
|
|
- name: hugo build
|
2023-01-14 09:07:12 +00:00
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
2023-01-22 14:06:28 +01:00
|
|
|
hugo_version: 0.110.0
|
2023-01-14 09:07:12 +00:00
|
|
|
validate: false
|
|
|
|
extended: true
|
2023-01-27 00:08:45 +01:00
|
|
|
url: https://cantorgymnasium.de/
|
2023-01-14 09:07:12 +00:00
|
|
|
commands:
|
2023-01-24 15:38:37 +01:00
|
|
|
- apk add --update --no-cache tzdata
|
2023-01-14 09:07:12 +00:00
|
|
|
- /bin/drone-hugo
|
2023-01-24 15:36:15 +01:00
|
|
|
|
|
|
|
- name: deploy
|
2023-01-24 15:37:27 +01:00
|
|
|
image: drillster/drone-rsync
|
|
|
|
settings:
|
|
|
|
hosts: [ "cantorgymnasium.de" ]
|
2023-01-24 16:09:48 +01:00
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
|
|
|
user: web-push
|
2023-01-24 15:37:27 +01:00
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
source: public/
|
|
|
|
target: /opt/data/webdata/gcg-website/
|
|
|
|
recursive: true
|
|
|
|
delete: true
|
2023-01-24 15:36:15 +01:00
|
|
|
|
2023-01-24 15:38:37 +01:00
|
|
|
- name: notification
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: telegram_token
|
|
|
|
to:
|
|
|
|
from_secret: telegram_room_id
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
2023-01-14 09:07:12 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2023-01-27 18:53:34 +01:00
|
|
|
event:
|
|
|
|
- push
|
2023-01-31 06:34:55 +01:00
|
|
|
- cron
|
2023-01-31 06:35:45 +01:00
|
|
|
- rollback
|
2023-01-27 18:53:34 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: test
|
|
|
|
steps:
|
2023-02-09 16:40:12 +01:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2023-01-27 18:53:34 +01:00
|
|
|
- name: test build
|
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
|
|
|
hugo_version: 0.110.0
|
|
|
|
validate: false
|
|
|
|
buildDrafts: true
|
|
|
|
buildFuture: true
|
|
|
|
extended: true
|
2023-01-27 19:21:05 +01:00
|
|
|
output: test
|
2023-01-27 18:53:34 +01:00
|
|
|
url: https://test.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
|
2023-01-27 19:21:05 +01:00
|
|
|
source: test/
|
2023-01-27 18:53:34 +01:00
|
|
|
target: /opt/data/webdata/gcg-website-test/
|
|
|
|
recursive: true
|
|
|
|
delete: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
2023-01-27 19:04:46 +01:00
|
|
|
- push
|
2023-01-31 06:34:55 +01:00
|
|
|
- cron
|
2023-01-31 06:35:45 +01:00
|
|
|
- rollback
|
2023-01-27 19:04:46 +01:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- prod
|