homepage/.drone.yml

315 lines
6.0 KiB
YAML
Raw Normal View History

---
merging origin/testing goodness into master * also adding .drone.yml for master branch Squashed commit of the following: commit 423fe440b21f19783fc27020cb3259d68cae4ea7 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:42:14 2020 +0100 [skip ci] serious updates y'all commit 75ffadcc53fe3a3007ab44f74be811205a4ea828 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:17:25 2020 +0100 [skip ci] add submodule in hugo-extended build too commit a57fbca9c79adf0db3abe5df6a70be6a42bc9f9c Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:51:51 2020 +0100 fixing wget magic commit 600288e13a6d5e0ce872c81e4baf8ec8d081db3e Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:40:35 2020 +0100 fix pointing to non-existent archlinux image commit f49929e49da33cdf3f2e78995e3ed1c2bc300ad4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:34:34 2020 +0100 updated .drone.yml + hugo config * attempting to build the site with hugo-extended * replaced old references with relevant paths commit cb0dade65be7b3b409fb5ac047ce1d6308d475b4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:36:42 2020 +0100 specifying we want a docker runner commit 20073d0d31bf421545788012e275fca44609d134 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:07:12 2020 +0100 have a badge indicating build status commit ae4ab498ccb267a95d765368236416cb0154b32b Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:58:14 2020 +0100 let drone actually build the site with hugo commit 81b3d123337bc577bbb090a35fe0970e68fd7243 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:42:22 2020 +0100 adding .drone.yml * let's see what happens (no idea really) commit 2f0d0b7fab2bf75ed7521525b576bb63af2abbf2 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:21:07 2020 +0100 merging master changes into testing Squashed commit of the following: commit 3dbabfbfb3ac45e24894d4869c0fd0d9b7a82756 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 20 06:17:34 2020 +0100 accomodate for adding of drone + cosmetic changes commit 976958461d85d22c7a0721137970838274b40a32 Merge: efacaa0 4e69fa9 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:30:53 2020 +0100 Merge 'origin/dev' into master Signed-off-by: surtur <a_mirre@utb.cz> commit 4e69fa9404cb0e79e846982d5a8d35b94e38aa67 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:23:35 2020 +0100 forgot this is git, not btrfs... fixing commit 96aec19aa2516618f3b5bc487178ad7255ae9d76 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:55:56 2020 +0100 PC above all commit 640726ee9c9c3b0a38508d2d47a4a09658bff4c0 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:51:14 2020 +0100 improvements in the deploy script logic commit be63d93aa365b4f2294476e451e27dbc83f0a80d Merge: efacaa0 fa4d4f4 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:43:03 2020 +0100 Merge remote-tracking branch 'origin/develop' commit fa4d4f448b7627d76f1322ce3eeba880a7bc808c Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:04:16 2020 +0100 minor updates to content pages commit 2956d3a7fae10f48cf3c8b0d421688166b6fd17a Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:01:30 2020 +0100 correct some instances of undesirable casing - also: set sub-title text to 'hello friend' (hello friend? that's lame. maybe I should give you a name.) commit 74ff5f012664f2bcada93f79d2e7209e18addb65 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 21:49:50 2020 +0100 removing forgotten cache commit d4691f3c340ff579feb65ab30b29658040c8c3f5 Author: drew <yngblkee1000@tfwno.gf> Date: Sun Oct 20 12:45:11 2019 +0200 create testing branch
2020-02-28 00:54:16 +01:00
kind: pipeline
type: docker
2020-07-13 16:30:09 +02:00
name: pull
clone:
disable: true
trigger:
event:
exclude: [push, pull_request]
merging origin/testing goodness into master * also adding .drone.yml for master branch Squashed commit of the following: commit 423fe440b21f19783fc27020cb3259d68cae4ea7 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:42:14 2020 +0100 [skip ci] serious updates y'all commit 75ffadcc53fe3a3007ab44f74be811205a4ea828 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:17:25 2020 +0100 [skip ci] add submodule in hugo-extended build too commit a57fbca9c79adf0db3abe5df6a70be6a42bc9f9c Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:51:51 2020 +0100 fixing wget magic commit 600288e13a6d5e0ce872c81e4baf8ec8d081db3e Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:40:35 2020 +0100 fix pointing to non-existent archlinux image commit f49929e49da33cdf3f2e78995e3ed1c2bc300ad4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:34:34 2020 +0100 updated .drone.yml + hugo config * attempting to build the site with hugo-extended * replaced old references with relevant paths commit cb0dade65be7b3b409fb5ac047ce1d6308d475b4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:36:42 2020 +0100 specifying we want a docker runner commit 20073d0d31bf421545788012e275fca44609d134 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:07:12 2020 +0100 have a badge indicating build status commit ae4ab498ccb267a95d765368236416cb0154b32b Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:58:14 2020 +0100 let drone actually build the site with hugo commit 81b3d123337bc577bbb090a35fe0970e68fd7243 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:42:22 2020 +0100 adding .drone.yml * let's see what happens (no idea really) commit 2f0d0b7fab2bf75ed7521525b576bb63af2abbf2 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:21:07 2020 +0100 merging master changes into testing Squashed commit of the following: commit 3dbabfbfb3ac45e24894d4869c0fd0d9b7a82756 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 20 06:17:34 2020 +0100 accomodate for adding of drone + cosmetic changes commit 976958461d85d22c7a0721137970838274b40a32 Merge: efacaa0 4e69fa9 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:30:53 2020 +0100 Merge 'origin/dev' into master Signed-off-by: surtur <a_mirre@utb.cz> commit 4e69fa9404cb0e79e846982d5a8d35b94e38aa67 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:23:35 2020 +0100 forgot this is git, not btrfs... fixing commit 96aec19aa2516618f3b5bc487178ad7255ae9d76 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:55:56 2020 +0100 PC above all commit 640726ee9c9c3b0a38508d2d47a4a09658bff4c0 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:51:14 2020 +0100 improvements in the deploy script logic commit be63d93aa365b4f2294476e451e27dbc83f0a80d Merge: efacaa0 fa4d4f4 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:43:03 2020 +0100 Merge remote-tracking branch 'origin/develop' commit fa4d4f448b7627d76f1322ce3eeba880a7bc808c Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:04:16 2020 +0100 minor updates to content pages commit 2956d3a7fae10f48cf3c8b0d421688166b6fd17a Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:01:30 2020 +0100 correct some instances of undesirable casing - also: set sub-title text to 'hello friend' (hello friend? that's lame. maybe I should give you a name.) commit 74ff5f012664f2bcada93f79d2e7209e18addb65 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 21:49:50 2020 +0100 removing forgotten cache commit d4691f3c340ff579feb65ab30b29658040c8c3f5 Author: drew <yngblkee1000@tfwno.gf> Date: Sun Oct 20 12:45:11 2019 +0200 create testing branch
2020-02-28 00:54:16 +01:00
steps:
2020-07-13 16:34:10 +02:00
- name: fedora-hugo
pull: always
image: immawanderer/fedora-hugo:latest
merging origin/testing goodness into master * also adding .drone.yml for master branch Squashed commit of the following: commit 423fe440b21f19783fc27020cb3259d68cae4ea7 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:42:14 2020 +0100 [skip ci] serious updates y'all commit 75ffadcc53fe3a3007ab44f74be811205a4ea828 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:17:25 2020 +0100 [skip ci] add submodule in hugo-extended build too commit a57fbca9c79adf0db3abe5df6a70be6a42bc9f9c Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:51:51 2020 +0100 fixing wget magic commit 600288e13a6d5e0ce872c81e4baf8ec8d081db3e Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:40:35 2020 +0100 fix pointing to non-existent archlinux image commit f49929e49da33cdf3f2e78995e3ed1c2bc300ad4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:34:34 2020 +0100 updated .drone.yml + hugo config * attempting to build the site with hugo-extended * replaced old references with relevant paths commit cb0dade65be7b3b409fb5ac047ce1d6308d475b4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:36:42 2020 +0100 specifying we want a docker runner commit 20073d0d31bf421545788012e275fca44609d134 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:07:12 2020 +0100 have a badge indicating build status commit ae4ab498ccb267a95d765368236416cb0154b32b Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:58:14 2020 +0100 let drone actually build the site with hugo commit 81b3d123337bc577bbb090a35fe0970e68fd7243 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:42:22 2020 +0100 adding .drone.yml * let's see what happens (no idea really) commit 2f0d0b7fab2bf75ed7521525b576bb63af2abbf2 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:21:07 2020 +0100 merging master changes into testing Squashed commit of the following: commit 3dbabfbfb3ac45e24894d4869c0fd0d9b7a82756 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 20 06:17:34 2020 +0100 accomodate for adding of drone + cosmetic changes commit 976958461d85d22c7a0721137970838274b40a32 Merge: efacaa0 4e69fa9 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:30:53 2020 +0100 Merge 'origin/dev' into master Signed-off-by: surtur <a_mirre@utb.cz> commit 4e69fa9404cb0e79e846982d5a8d35b94e38aa67 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:23:35 2020 +0100 forgot this is git, not btrfs... fixing commit 96aec19aa2516618f3b5bc487178ad7255ae9d76 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:55:56 2020 +0100 PC above all commit 640726ee9c9c3b0a38508d2d47a4a09658bff4c0 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:51:14 2020 +0100 improvements in the deploy script logic commit be63d93aa365b4f2294476e451e27dbc83f0a80d Merge: efacaa0 fa4d4f4 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:43:03 2020 +0100 Merge remote-tracking branch 'origin/develop' commit fa4d4f448b7627d76f1322ce3eeba880a7bc808c Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:04:16 2020 +0100 minor updates to content pages commit 2956d3a7fae10f48cf3c8b0d421688166b6fd17a Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:01:30 2020 +0100 correct some instances of undesirable casing - also: set sub-title text to 'hello friend' (hello friend? that's lame. maybe I should give you a name.) commit 74ff5f012664f2bcada93f79d2e7209e18addb65 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 21:49:50 2020 +0100 removing forgotten cache commit d4691f3c340ff579feb65ab30b29658040c8c3f5 Author: drew <yngblkee1000@tfwno.gf> Date: Sun Oct 20 12:45:11 2019 +0200 create testing branch
2020-02-28 00:54:16 +01:00
commands:
2020-07-13 15:52:30 +02:00
- uname -r
- cat /etc/fedora-release
2020-07-13 16:34:10 +02:00
- name: alpine-rsync
pull: always
image: immawanderer/alpine-rsync:latest
commands:
- uname -r
- name: hadolint
pull: always
image: hadolint/hadolint:2.0.0-alpine
commands:
- uname -r
- hadolint --version
2020-07-13 16:34:10 +02:00
2020-07-13 16:30:09 +02:00
---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
2020-07-13 16:30:09 +02:00
trigger:
branch: [master, testing]
event: pull_request
2020-07-13 16:30:09 +02:00
depends_on:
- pull
steps:
2020-07-13 15:52:30 +02:00
- name: hugo-extended
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
commands:
- git submodule init
- git submodule update
- hugo version
- hugo --gc=true --minify
---
kind: pipeline
type: docker
name: docker-compose-build
platform:
os: linux
arch: amd64
trigger:
branch: master
event: pull_request
depends_on:
- build
steps:
- name: hadolint
image: hadolint/hadolint:v2.6.0-alpine
commands:
- hadolint --version
- hadolint Dockerfile
- name: build
pull: always
image: tmaier/docker-compose:latest
volumes:
- name: s
path: /var/run/docker.sock
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
commands:
2020-10-09 23:08:15 +02:00
- docker-compose build --no-cache --pull
volumes:
- name: s
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: deploy-staging
platform:
os: linux
arch: amd64
trigger:
branch:
- testing
event:
exclude: [pull_request, tag]
depends_on:
- build
steps:
- name: hugo-extended
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
2020-07-13 15:52:30 +02:00
commands:
merging origin/testing goodness into master * also adding .drone.yml for master branch Squashed commit of the following: commit 423fe440b21f19783fc27020cb3259d68cae4ea7 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:42:14 2020 +0100 [skip ci] serious updates y'all commit 75ffadcc53fe3a3007ab44f74be811205a4ea828 Author: surtur <a_mirre@utb.cz> Date: Fri Feb 28 00:17:25 2020 +0100 [skip ci] add submodule in hugo-extended build too commit a57fbca9c79adf0db3abe5df6a70be6a42bc9f9c Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:51:51 2020 +0100 fixing wget magic commit 600288e13a6d5e0ce872c81e4baf8ec8d081db3e Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:40:35 2020 +0100 fix pointing to non-existent archlinux image commit f49929e49da33cdf3f2e78995e3ed1c2bc300ad4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 23:34:34 2020 +0100 updated .drone.yml + hugo config * attempting to build the site with hugo-extended * replaced old references with relevant paths commit cb0dade65be7b3b409fb5ac047ce1d6308d475b4 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:36:42 2020 +0100 specifying we want a docker runner commit 20073d0d31bf421545788012e275fca44609d134 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 17:07:12 2020 +0100 have a badge indicating build status commit ae4ab498ccb267a95d765368236416cb0154b32b Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:58:14 2020 +0100 let drone actually build the site with hugo commit 81b3d123337bc577bbb090a35fe0970e68fd7243 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:42:22 2020 +0100 adding .drone.yml * let's see what happens (no idea really) commit 2f0d0b7fab2bf75ed7521525b576bb63af2abbf2 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 27 16:21:07 2020 +0100 merging master changes into testing Squashed commit of the following: commit 3dbabfbfb3ac45e24894d4869c0fd0d9b7a82756 Author: surtur <a_mirre@utb.cz> Date: Thu Feb 20 06:17:34 2020 +0100 accomodate for adding of drone + cosmetic changes commit 976958461d85d22c7a0721137970838274b40a32 Merge: efacaa0 4e69fa9 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:30:53 2020 +0100 Merge 'origin/dev' into master Signed-off-by: surtur <a_mirre@utb.cz> commit 4e69fa9404cb0e79e846982d5a8d35b94e38aa67 Author: surtur <a_mirre@utb.cz> Date: Tue Feb 18 00:23:35 2020 +0100 forgot this is git, not btrfs... fixing commit 96aec19aa2516618f3b5bc487178ad7255ae9d76 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:55:56 2020 +0100 PC above all commit 640726ee9c9c3b0a38508d2d47a4a09658bff4c0 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:51:14 2020 +0100 improvements in the deploy script logic commit be63d93aa365b4f2294476e451e27dbc83f0a80d Merge: efacaa0 fa4d4f4 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:43:03 2020 +0100 Merge remote-tracking branch 'origin/develop' commit fa4d4f448b7627d76f1322ce3eeba880a7bc808c Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:04:16 2020 +0100 minor updates to content pages commit 2956d3a7fae10f48cf3c8b0d421688166b6fd17a Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 23:01:30 2020 +0100 correct some instances of undesirable casing - also: set sub-title text to 'hello friend' (hello friend? that's lame. maybe I should give you a name.) commit 74ff5f012664f2bcada93f79d2e7209e18addb65 Author: surtur <a_mirre@utb.cz> Date: Mon Feb 17 21:49:50 2020 +0100 removing forgotten cache commit d4691f3c340ff579feb65ab30b29658040c8c3f5 Author: drew <yngblkee1000@tfwno.gf> Date: Sun Oct 20 12:45:11 2019 +0200 create testing branch
2020-02-28 00:54:16 +01:00
- git submodule init
- git submodule update
2020-03-02 01:03:14 +01:00
- hugo version
- hugo --gc=true --minify
2020-03-02 20:25:56 +01:00
2020-07-09 09:38:50 +02:00
- name: deploy
2020-07-13 16:34:10 +02:00
pull: if-not-exists
2020-07-09 09:38:50 +02:00
image: immawanderer/alpine-rsync:latest
when:
status:
- success
branch:
- testing
2020-07-09 09:38:50 +02:00
depends_on:
- hugo-extended
environment:
OL:
from_secret: hugo_user
2020-07-09 10:58:17 +02:00
OL_P:
from_secret: hugo_passwd
2020-07-09 09:38:50 +02:00
OL_D:
from_secret: hugo_dir
commands:
2020-07-09 11:32:24 +02:00
- echo $OL_P > nupass
2020-07-09 11:37:24 +02:00
- export RSYNC_RSH='sshpass -f ./nupass ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
2020-07-09 11:33:34 +02:00
- rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D
---
kind: pipeline
type: docker
name: deploy
platform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
exclude: [pull_request, tag]
environment:
# ref: https://www.docker.com/blog/faster-builds-in-compose-thanks-to-buildkit-support/
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
node:
r: main
depends_on:
- build
steps:
- name: hugo-extended
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
commands:
- git submodule init
- git submodule update
- hugo version
- hugo --gc=true --minify
- name: rm-intermediate
pull: if-not-exists
image: immawanderer/fedora-hugo:latest
depends_on:
- hugo-extended
commands:
- rm -rf ./public
- name: build
pull: always
image: tmaier/docker-compose:latest
depends_on:
- rm-intermediate
volumes:
- name: s
path: /var/run/docker.sock
commands:
- docker-compose build --no-cache
when:
branch: master
status: success
- name: deploy
pull: always
image: tmaier/docker-compose:latest
depends_on:
- build
volumes:
- name: s
path: /var/run/docker.sock
commands:
- docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans --scale homepage=4
when:
branch: master
status: success
volumes:
- name: s
host:
path: /var/run/docker.sock
2020-03-02 20:25:56 +01:00
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
clone:
disable: true
trigger:
branch:
2020-07-09 09:38:50 +02:00
- master
- testing
2020-03-02 20:25:56 +01:00
event:
2020-07-09 09:38:50 +02:00
- push
- tag
2020-03-02 20:25:56 +01:00
status:
2020-07-09 09:38:50 +02:00
- success
- failure
2020-03-02 20:25:56 +01:00
depends_on: [deploy, deploy-staging]
steps:
- name: discord
pull: if-not-exists
image: appleboy/drone-discord:latest
settings:
2020-06-10 15:15:42 +02:00
message: >
{{#success build.status}}
2020-06-10 15:15:42 +02:00
✅ [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}`**
2020-07-09 09:38:50 +02:00
failed stage(s): **`${DRONE_FAILED_STAGES}`**
2020-06-10 15:15:42 +02:00
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
2020-07-09 09:38:50 +02:00
```{{commit.message}}```
2020-06-10 15:15:42 +02:00
{{/success}}
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
---
kind: pipeline
2020-07-09 09:38:50 +02:00
name: notifications-cron
platform:
os: linux
arch: amd64
clone:
disable: true
trigger:
event: cron
cron: [hourly, nightly]
status: [success, failure]
depends_on: [deploy]
steps:
- name: discord
pull: always
image: appleboy/drone-discord:latest
settings:
2020-06-10 15:15:42 +02:00
message: >
{{#success build.status}}
✅ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
2020-06-10 15:15:42 +02:00
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}}
❌ [Cron build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy.
2020-06-10 15:15:42 +02:00
event: **`${DRONE_BUILD_EVENT}`**
2020-07-09 09:38:50 +02:00
failed stage(s): **`${DRONE_FAILED_STAGES}`**
2020-06-10 15:15:42 +02:00
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
2020-07-09 09:38:50 +02:00
```{{commit.message}}```
2020-06-10 15:15:42 +02:00
{{/success}}
webhook_id:
from_secret: discord_webhook_hourly_id
webhook_token:
from_secret: discord_webhook_hourly_token