From 720168f0a07fdc7c81ec5fb21a14d8d3c0f6470d Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:27:03 -0800 Subject: [PATCH] only notify on failure for now --- .drone.yml | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5ebeb8a57..d3e94aed4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,7 +25,6 @@ steps: when: status: - failure - - success image_pull_secrets: - dockerconfigjson @@ -43,6 +42,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux amd64 $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure image_pull_secrets: - dockerconfigjson @@ -60,6 +73,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux arm64 $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure platform: os: linux @@ -81,6 +108,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux armv7 $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure platform: os: linux @@ -102,6 +143,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux riscv64 $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure image_pull_secrets: - dockerconfigjson @@ -119,6 +174,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux mips64le $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure image_pull_secrets: - dockerconfigjson @@ -136,6 +205,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux ppc64le $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure image_pull_secrets: - dockerconfigjson @@ -153,6 +236,20 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux s390x $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: registry.sean.farm/mattermost-notify + pull: always + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel + maxRetry: 3 + when: + status: + - failure image_pull_secrets: - dockerconfigjson