From 5de627e3d096d81ca54429a8aedd457dd1d93d4a Mon Sep 17 00:00:00 2001 From: ezkrg Date: Tue, 21 Sep 2021 14:46:49 +0200 Subject: create debian build and add whatsapp --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index ffe08cc..eaef8d1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,6 +44,40 @@ steps: event: - tag + - name: debian-test + image: ezkrg/buildx:latest + environment: + USER: + from_secret: DHU + PASSWORD: + from_secret: DHP + DOCKER_HOST: tcp://docker:2375 + commands: + - sleep 5 + - docker run --rm --privileged tonistiigi/binfmt --install all + - docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST + - echo $PASSWORD | docker login --username $USER --password-stdin + - docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:debian-cache --cache-to ezkrg/bitlbee-libpurple:debian-cache -t ezkrg/bitlbee-libpurple:debian-test --platform linux/amd64,linux/arm64,linux/armhf -f Dockerfile.debian . + + - name: debian-release + image: docker:stable + environment: + USER: + from_secret: DHU + PASSWORD: + from_secret: DHP + DOCKER_HOST: tcp://docker:2375 + commands: + - echo $PASSWORD | docker login --username $USER --password-stdin + - docker pull ezkrg/bitlbee-libpurple:debian-test + - docker tag ezkrg/bitlbee-libpurple:debian-test ezkrg/bitlbee-libpurple:debian-$DRONE_TAG + - docker push ezkrg/bitlbee-libpurple:debian-$DRONE_TAG + - docker tag ezkrg/bitlbee-libpurple:debian-test ezkrg/bitlbee-libpurple:debian-latest + - docker push ezkrg/bitlbee-libpurple:debian-latest + when: + event: + - tag + --- kind: pipeline type: docker @@ -67,11 +101,8 @@ steps: [Pipeline #{{build.number}} has {{#success build.status}}passed{{else}}failed{{/success}} in {{duration build.started build.finished}}]({{build.link}}) {{#success build.status}}✅{{else}}❌{{/success}} *Branch:* [{{commit.branch}}](https://github.com/{{repo.namespace}}/{{repo.name}}/commits/{{commit.branch}}) *Commit:* [{{commit.message}}]({{commit.link}}) -depends_on: - - docker - --- kind: signature -hmac: 4d16b8fe931c702b0383aaacf4b3dfb28c60b69577f65cd07981a9d1eedbb730 +hmac: 96a9cb6a778f2ba772a1e145cf60384d1104788eb868195de42b902fe0ca1103 ... -- cgit v1.2.3 From 762b4db2dfcf800a15ac43763a1980f4a8c721f7 Mon Sep 17 00:00:00 2001 From: ezkrg Date: Tue, 21 Sep 2021 14:54:54 +0200 Subject: change cache tag --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index eaef8d1..e1b9a4d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,7 @@ steps: - docker run --rm --privileged tonistiigi/binfmt --install all - docker buildx create --use --name docker --node docker --platform linux/amd64,linux/arm64,linux/armhf --driver docker-container $DOCKER_HOST - echo $PASSWORD | docker login --username $USER --password-stdin - - docker buildx build --push --cache-from ezkrg/cache:bitlbee-libpurple --cache-to ezkrg/cache:bitlbee-libpurple -t ezkrg/bitlbee-libpurple:test --platform linux/amd64,linux/arm64,linux/armhf . + - docker buildx build --push --cache-from ezkrg/bitlbee-libpurple:cache --cache-to ezkrg/bitlbee-libpurple:cache -t ezkrg/bitlbee-libpurple:test --platform linux/amd64,linux/arm64,linux/armhf . - name: release image: docker:stable @@ -103,6 +103,6 @@ steps: --- kind: signature -hmac: 96a9cb6a778f2ba772a1e145cf60384d1104788eb868195de42b902fe0ca1103 +hmac: 00e85cfab9078d3b6de85baa1e6e32cd3548c0c7f10d997d2c8bcb1f190ae3a7 ... -- cgit v1.2.3 From 5ad6b29d01f4a33c9987df5b61edddecbc5ae28b Mon Sep 17 00:00:00 2001 From: ezkrg Date: Tue, 21 Sep 2021 14:56:44 +0200 Subject: merge to one pipeline --- .drone.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index e1b9a4d..65cfbb4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -78,16 +78,7 @@ steps: event: - tag ---- -kind: pipeline -type: docker -name: notification - -clone: - disable: true - -steps: - - name: telegram + - name: notification image: appleboy/drone-telegram:1.3.4 failure: ignore settings: @@ -100,9 +91,13 @@ steps: *{{repo.namespace}}/{{repo.name}}* [Pipeline #{{build.number}} has {{#success build.status}}passed{{else}}failed{{/success}} in {{duration build.started build.finished}}]({{build.link}}) {{#success build.status}}✅{{else}}❌{{/success}} *Branch:* [{{commit.branch}}](https://github.com/{{repo.namespace}}/{{repo.name}}/commits/{{commit.branch}}) *Commit:* [{{commit.message}}]({{commit.link}}) + when: + status: + - success + - failure --- kind: signature -hmac: 00e85cfab9078d3b6de85baa1e6e32cd3548c0c7f10d997d2c8bcb1f190ae3a7 +hmac: 1e71b1fcd0f0cf3b5bb9742137a2897f6c9596568c7fe355e64db686cdceb4d4 ... -- cgit v1.2.3 From a8b8689093cab2f488b47c82e414e936440b74cf Mon Sep 17 00:00:00 2001 From: ezkrg Date: Tue, 21 Sep 2021 15:02:38 +0200 Subject: forgot that same pipeline logs zero running time --- .drone.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index 65cfbb4..5a25c6a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -78,6 +78,15 @@ steps: event: - tag +--- +kind: pipeline +type: docker +name: notification + +clone: + disable: true + +steps: - name: notification image: appleboy/drone-telegram:1.3.4 failure: ignore @@ -96,6 +105,9 @@ steps: - success - failure +depends_on: + - docker + --- kind: signature hmac: 1e71b1fcd0f0cf3b5bb9742137a2897f6c9596568c7fe355e64db686cdceb4d4 -- cgit v1.2.3 From dcb3c67bfd56c5fcecceabc9028e6558350f4d07 Mon Sep 17 00:00:00 2001 From: ezkrg Date: Tue, 21 Sep 2021 15:07:18 +0200 Subject: sign drone --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index 5a25c6a..0e383e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -110,6 +110,6 @@ depends_on: --- kind: signature -hmac: 1e71b1fcd0f0cf3b5bb9742137a2897f6c9596568c7fe355e64db686cdceb4d4 +hmac: 7510d775f0f5a15c09e28e645dd8fa21151614749ce232922efc4188b98a5254 ... -- cgit v1.2.3