2020-03-02 20:30:25 +01:00
|
|
|
---
|
2020-02-28 00:54:16 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-04-10 16:56:36 +02:00
|
|
|
name: build
|
2020-02-28 00:54:16 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: hugo-extended
|
2020-03-03 22:33:04 +01:00
|
|
|
pull: always
|
2020-06-07 15:44:57 +02:00
|
|
|
image: immawanderer/fedora-hugo:latest
|
2020-02-28 00:54:16 +01:00
|
|
|
commands:
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
2020-03-02 01:03:14 +01:00
|
|
|
- hugo version
|
2020-03-08 05:11:26 +01:00
|
|
|
- hugo --gc=true --minify
|
2020-03-02 20:25:56 +01:00
|
|
|
|
|
|
|
|
2020-03-08 05:11:26 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: deploy
|
|
|
|
|
2020-06-03 13:04:51 +02:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2020-03-08 05:11:26 +01:00
|
|
|
steps:
|
2020-03-10 03:49:49 +01:00
|
|
|
- name: ssh-deploy
|
2020-03-10 01:24:45 +01:00
|
|
|
pull: if-not-exists
|
2020-03-10 03:49:49 +01:00
|
|
|
image: appleboy/drone-ssh:latest
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: hugo_host
|
|
|
|
username:
|
|
|
|
from_secret: hugo_user
|
2020-03-10 03:52:44 +01:00
|
|
|
password:
|
|
|
|
from_secret: hugo_passwd
|
2020-03-10 03:49:49 +01:00
|
|
|
script_stop: true
|
|
|
|
script:
|
|
|
|
- cd ~/dtya
|
2020-03-10 04:00:26 +01:00
|
|
|
- eval $(ssh-agent)
|
2020-03-10 03:56:53 +01:00
|
|
|
- ssh-add ~/.ssh/overlord
|
2020-05-31 03:34:58 +02:00
|
|
|
- git pull -4
|
2020-06-23 21:49:44 +02:00
|
|
|
- ./deploy "0.73.0"
|
2020-03-08 05:11:26 +01:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
|
2020-03-10 01:24:45 +01:00
|
|
|
depends_on:
|
2020-04-10 16:56:36 +02:00
|
|
|
- build
|
2020-03-10 01:24:45 +01:00
|
|
|
|
|
|
|
|
2020-03-02 20:25:56 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2020-03-07 05:59:20 +01:00
|
|
|
- "dev*"
|
2020-03-02 20:25:56 +01:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
2020-04-10 16:56:36 +02:00
|
|
|
- build
|
2020-03-02 20:25:56 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: discord
|
2020-04-22 11:57:51 +02:00
|
|
|
pull: if-not-exists
|
|
|
|
image: appleboy/drone-discord:latest
|
2020-03-02 20:25:56 +01:00
|
|
|
settings:
|
2020-06-10 15:15:42 +02:00
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
```{{commit.message}}```
|
|
|
|
{{else}}
|
|
|
|
❌ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
```{{commit.message}}```
|
|
|
|
{{/success}}
|
2020-03-02 20:25:56 +01:00
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_token
|
2020-03-02 23:14:56 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications-cronbuild
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
cron:
|
|
|
|
- hourly
|
|
|
|
- hourly-build
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
2020-04-10 16:56:36 +02:00
|
|
|
- build
|
2020-03-02 23:14:56 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
2020-04-22 11:57:51 +02:00
|
|
|
image: appleboy/drone-discord:latest
|
2020-03-02 23:14:56 +01:00
|
|
|
settings:
|
2020-06-10 15:15:42 +02:00
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{else}}
|
|
|
|
❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
```{{commit.message}}```
|
|
|
|
{{/success}}
|
2020-03-02 23:14:56 +01:00
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_hourly_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_hourly_token
|
2020-03-08 05:11:26 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications-deploy
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
trigger:
|
2020-04-22 11:41:28 +02:00
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- "dev*"
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2020-03-08 05:11:26 +01:00
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: discord
|
2020-04-22 11:57:51 +02:00
|
|
|
pull: if-not-exists
|
|
|
|
image: appleboy/drone-discord:latest
|
2020-03-08 05:11:26 +01:00
|
|
|
settings:
|
2020-06-10 15:15:42 +02:00
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{else}}
|
|
|
|
❌ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{/success}}
|
2020-03-08 05:11:26 +01:00
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_token
|
2020-04-22 11:41:28 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications-cron-deploy
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
cron:
|
|
|
|
- hourly
|
|
|
|
- hourly-build
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
2020-04-22 11:57:51 +02:00
|
|
|
image: appleboy/drone-discord:latest
|
2020-04-22 11:41:28 +02:00
|
|
|
settings:
|
2020-06-10 15:15:42 +02:00
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{else}}
|
|
|
|
❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{/success}}
|
2020-04-22 11:41:28 +02:00
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_hourly_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_hourly_token
|