From 09fff7f1cb7c4ed4c90328b1f23f16f4d1226f70 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 12:50:19 -0800 Subject: [PATCH 01/18] lets try this --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8c0e0e9b0..bc16bd58f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,15 @@ steps: image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} + - name: notify-mattermost + image: dabankio/drone-plugin-mattermost + environment: + token: + from_secret: mattermost-token + host: + from_secret: mattermost-host + channel: + from_secret: mattermost-channel image_pull_secrets: - dockerconfigjson From 51158dde934f5f7709e8d3f45be076c9a2a73722 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 12:58:12 -0800 Subject: [PATCH 02/18] make it run on failure and succes --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index bc16bd58f..832d3be6f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,10 @@ steps: from_secret: mattermost-host channel: from_secret: mattermost-channel + when: + status: + - failure + - success image_pull_secrets: - dockerconfigjson From 549673664d0550044d3fdaeb8ea24231c7e831ac Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 13:34:28 -0800 Subject: [PATCH 03/18] custom image --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 832d3be6f..d4ea00d65 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,11 +8,11 @@ clone: steps: - name: build 386 - image: registry.sean.farm/honda-builder + image: registry.sean.farm/honda-builder:4 commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: dabankio/drone-plugin-mattermost + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token From 21946f38d098c2ef7a0679573173ddfc236b3d2a Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 13:35:44 -0800 Subject: [PATCH 04/18] oops --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d4ea00d65..7c4eba89c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ clone: steps: - name: build 386 - image: registry.sean.farm/honda-builder:4 + image: registry.sean.farm/honda-builder commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost From 30256c7106579ca526e01ccc756c73932ab265b0 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 13:44:00 -0800 Subject: [PATCH 05/18] set max retries --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7c4eba89c..d24d0b2a4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,8 @@ steps: from_secret: mattermost-host channel: from_secret: mattermost-channel + settings: + maxRetry: 3 when: status: - failure From 440f10e353a02ac6746b68005abdbbb0631bbbfc Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Feb 2022 13:48:48 -0800 Subject: [PATCH 06/18] max retires 3 --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d24d0b2a4..c22c5124d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,8 +20,7 @@ steps: from_secret: mattermost-host channel: from_secret: mattermost-channel - settings: - maxRetry: 3 + maxRetry: 3 when: status: - failure From e475e8151de9a3045a8a3741f2d9d1476f8ceda3 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 09:56:31 -0800 Subject: [PATCH 07/18] set pull: always on notify image --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index c22c5124d..f473ef6fc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,7 @@ steps: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost image: registry.sean.farm/mattermost-notify + pull: always environment: token: from_secret: mattermost-token From 5abc8bd2afb4e7ecf1de0dd857ab8629602ffc00 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 10:09:01 -0800 Subject: [PATCH 08/18] specify tag --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f473ef6fc..b9f841a1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071002 pull: always environment: token: From 3c906102e1db30b1cd75f877f62ad727b29aa6aa Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 10:26:29 -0800 Subject: [PATCH 09/18] update notify image --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b9f841a1d..54081ecfe 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify:202202071002 + image: registry.sean.farm/mattermost-notify:202202071024 pull: always environment: token: From a3e0ba16f54b5449bb35ae1384dc9eb3120003f9 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 10:43:56 -0800 Subject: [PATCH 10/18] poke --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 54081ecfe..a4ccd3c6a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify:202202071024 + image: registry.sean.farm/mattermost-notify:202202071040 pull: always environment: token: From dbc5d5c453a359aeed80ca78687203ad0fa9e38a Mon Sep 17 00:00:00 2001 From: Sean OMeara Date: Mon, 7 Feb 2022 19:54:56 +0100 Subject: [PATCH 11/18] Update .drone.yml OCD made me do it --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index a4ccd3c6a..12ba95fe5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,6 +61,10 @@ steps: commands: - ./ci/scripts/build.sh linux arm64 $${DRONE_COMMIT_SHA} +platform: + os: linux + arch: arm64 + image_pull_secrets: - dockerconfigjson @@ -78,6 +82,10 @@ steps: commands: - ./ci/scripts/build.sh linux armv7 $${DRONE_COMMIT_SHA} +platform: + os: linux + arch: arm64 + image_pull_secrets: - dockerconfigjson From 10b38b5b0a9de85010fc08e802b29f65bd376f68 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:14:46 -0800 Subject: [PATCH 12/18] poke --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 12ba95fe5..59381913b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify:202202071040 + image: registry.sean.farm/mattermost-notify:202202071107 pull: always environment: token: From 6dfecca91e814cadda965c40333f4876b7c3e11e Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:23:38 -0800 Subject: [PATCH 13/18] poke --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 59381913b..5ebeb8a57 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify:202202071107 + image: registry.sean.farm/mattermost-notify pull: always environment: token: From 720168f0a07fdc7c81ec5fb21a14d8d3c0f6470d Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:27:03 -0800 Subject: [PATCH 14/18] 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 From f544f75c360ea2ecdb46e83f0cd17a8add837dc2 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:32:19 -0800 Subject: [PATCH 15/18] notify all again --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index d3e94aed4..e65c68718 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson @@ -56,6 +57,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson @@ -87,6 +89,7 @@ steps: when: status: - failure + - success platform: os: linux @@ -122,6 +125,7 @@ steps: when: status: - failure + - success platform: os: linux @@ -157,6 +161,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson @@ -188,6 +193,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson @@ -219,6 +225,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson @@ -250,6 +257,7 @@ steps: when: status: - failure + - success image_pull_secrets: - dockerconfigjson From 4641a4402910385294ff97bc9d709babd088260c Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:36:52 -0800 Subject: [PATCH 16/18] does order matter? --- .drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index e65c68718..6762ee7bf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,8 +12,8 @@ steps: commands: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -44,8 +44,8 @@ steps: commands: - ./ci/scripts/build.sh linux amd64 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -76,8 +76,8 @@ steps: commands: - ./ci/scripts/build.sh linux arm64 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -112,8 +112,8 @@ steps: commands: - ./ci/scripts/build.sh linux armv7 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -148,8 +148,8 @@ steps: commands: - ./ci/scripts/build.sh linux riscv64 $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -180,8 +180,8 @@ steps: commands: - ./ci/scripts/build.sh linux mips64le $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -212,8 +212,8 @@ steps: commands: - ./ci/scripts/build.sh linux ppc64le $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -244,8 +244,8 @@ steps: commands: - ./ci/scripts/build.sh linux s390x $${DRONE_COMMIT_SHA} - name: notify-mattermost - image: registry.sean.farm/mattermost-notify pull: always + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token From c065e88e1edad9280757b797c2de69896b10dcf1 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:39:47 -0800 Subject: [PATCH 17/18] notify tags are back --- .drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6762ee7bf..5b049c43e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -45,7 +45,7 @@ steps: - ./ci/scripts/build.sh linux amd64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -77,7 +77,7 @@ steps: - ./ci/scripts/build.sh linux arm64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -113,7 +113,7 @@ steps: - ./ci/scripts/build.sh linux armv7 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -149,7 +149,7 @@ steps: - ./ci/scripts/build.sh linux riscv64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -181,7 +181,7 @@ steps: - ./ci/scripts/build.sh linux mips64le $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -213,7 +213,7 @@ steps: - ./ci/scripts/build.sh linux ppc64le $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token @@ -245,7 +245,7 @@ steps: - ./ci/scripts/build.sh linux s390x $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify + image: registry.sean.farm/mattermost-notify:202202071123 environment: token: from_secret: mattermost-token From 2652c71c9e5b4b3579d1cbcd786e6ce93ba366ae Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 7 Feb 2022 11:54:50 -0800 Subject: [PATCH 18/18] remove tag one more time --- .drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5b049c43e..6762ee7bf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: - ./ci/scripts/build.sh linux 386 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -45,7 +45,7 @@ steps: - ./ci/scripts/build.sh linux amd64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -77,7 +77,7 @@ steps: - ./ci/scripts/build.sh linux arm64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -113,7 +113,7 @@ steps: - ./ci/scripts/build.sh linux armv7 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -149,7 +149,7 @@ steps: - ./ci/scripts/build.sh linux riscv64 $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -181,7 +181,7 @@ steps: - ./ci/scripts/build.sh linux mips64le $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -213,7 +213,7 @@ steps: - ./ci/scripts/build.sh linux ppc64le $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token @@ -245,7 +245,7 @@ steps: - ./ci/scripts/build.sh linux s390x $${DRONE_COMMIT_SHA} - name: notify-mattermost pull: always - image: registry.sean.farm/mattermost-notify:202202071123 + image: registry.sean.farm/mattermost-notify environment: token: from_secret: mattermost-token