From 669f1ffe2ccb6db1e07919b3672b48960f08c57f Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 18:44:57 +0700 Subject: [PATCH 01/14] dest drone pipeline --- .drone.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2e67ef2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +type: docker +name: unstable + +steps: +- name: docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: bbilly1/tubearchivist-test + tags: + - unstable + dry_run: True + target: linux/amd64 From ddc3ea5e725d6639a6d04bfe989e247661a1536f Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 19:15:47 +0700 Subject: [PATCH 02/14] test drone pipeline --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 2e67ef2..237f5de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,7 @@ kind: pipeline type: docker name: unstable +# test comment steps: - name: docker image: plugins/docker From ab6689c7c8066f928f4d1e8d59b291501aa9c3c7 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 21:17:37 +0700 Subject: [PATCH 03/14] test dockerconfigjson --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 237f5de..ca25077 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,3 +16,6 @@ steps: - unstable dry_run: True target: linux/amd64 + +image_pull_secrets: +- dockerconfigjson From 1f0ef10d358f12ef6f85b4552f60d5848ce2c5d2 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 21:26:24 +0700 Subject: [PATCH 04/14] test build to other account --- .drone.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index ca25077..351f74b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,11 +11,8 @@ steps: from_secret: docker_username password: from_secret: docker_password - repo: bbilly1/tubearchivist-test + repo: bbilly2/tubearchivist-test tags: - unstable dry_run: True target: linux/amd64 - -image_pull_secrets: -- dockerconfigjson From 5bccbfbd84e9bfc159a6451c5b26a78df159f8d8 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 21:37:03 +0700 Subject: [PATCH 05/14] explicitly set platform --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 351f74b..94f992e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,10 @@ kind: pipeline type: docker name: unstable +platform: + os: linux + arch: amd64 + # test comment steps: - name: docker @@ -15,4 +19,3 @@ steps: tags: - unstable dry_run: True - target: linux/amd64 From da251b28a4069b359c72520b55f947fe37fb6810 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 21:42:16 +0700 Subject: [PATCH 06/14] remove dry_run --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 94f992e..2bc4461 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,4 +18,3 @@ steps: repo: bbilly2/tubearchivist-test tags: - unstable - dry_run: True From 0749cdd8f3cffc281d59566663ea4e8c2526e7c4 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 21:59:15 +0700 Subject: [PATCH 07/14] add TARGETPLATFORM env var --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2bc4461..36f8f44 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,8 @@ platform: steps: - name: docker image: plugins/docker + environment: + TARGETPLATFORM: linux/amd64 settings: username: from_secret: docker_username From b301a89ce122f377cc2898d5c17a4bf3782cf753 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 22:29:04 +0700 Subject: [PATCH 08/14] change docker login --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 36f8f44..637d433 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,6 +17,6 @@ steps: from_secret: docker_username password: from_secret: docker_password - repo: bbilly2/tubearchivist-test + repo: bbilly1/tubearchivist-test tags: - unstable From ced2452d6e3db28f8d7b95c3e0f63f04636e740c Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 22:42:30 +0700 Subject: [PATCH 09/14] image_pull_secrets with new creds --- .drone.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 637d433..4513263 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,10 +13,9 @@ steps: environment: TARGETPLATFORM: linux/amd64 settings: - username: - from_secret: docker_username - password: - from_secret: docker_password repo: bbilly1/tubearchivist-test tags: - unstable + +image_pull_secrets: +- dockerconfigjson From 3679d28ffeeafc5480c25b52a6b7dfc4c83e973e Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 May 2022 23:39:34 +0700 Subject: [PATCH 10/14] use docker_token instead --- .drone.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4513263..358f701 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,7 @@ steps: repo: bbilly1/tubearchivist-test tags: - unstable - -image_pull_secrets: -- dockerconfigjson + username: + from_secret: docker_username + password: + from_secret: docker_token From 7e515b52e12c5043579c2a0e9e6b2350cba5c0d9 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 12 May 2022 00:20:57 +0700 Subject: [PATCH 11/14] add TARGETPLATFORM build_args --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 358f701..6e4f096 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,8 +10,6 @@ platform: steps: - name: docker image: plugins/docker - environment: - TARGETPLATFORM: linux/amd64 settings: repo: bbilly1/tubearchivist-test tags: @@ -20,3 +18,5 @@ steps: from_secret: docker_username password: from_secret: docker_token + build_args: + - TARGETPLATFORM=linux/amd64 From 526d75af4fd97308ddb31ab1f523463f7a950605 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 12 May 2022 16:33:18 +0700 Subject: [PATCH 12/14] add arm64 build --- .drone.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6e4f096..ee790c3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: unstable +name: amd64 platform: os: linux @@ -20,3 +20,26 @@ steps: from_secret: docker_token build_args: - TARGETPLATFORM=linux/amd64 + +--- +kind: pipeline +type: docker +name: arm64 + +platform: + os: linux + arch: arm64 + +steps: +- name: docker + image: plugins/docker + settings: + repo: bbilly1/tubearchivist-test + tags: + - unstable + username: + from_secret: docker_username + password: + from_secret: docker_token + build_args: + - TARGETPLATFORM=linux/arm64 From 03527b4ace0b031053c49b636a1c656856c72538 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 12 May 2022 21:50:37 +0700 Subject: [PATCH 13/14] add manifest pipeline --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index ee790c3..1ed0350 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,3 +43,26 @@ steps: from_secret: docker_token build_args: - TARGETPLATFORM=linux/arm64 + +--- +kind: pipeline +type: docker +name: manifest + +steps: +- name: manifest + image: plugins/manifest + settings: + target: bbilly1/tubearchivist-test + template: bbilly1/tubearchivist-test:unstable-OS-ARCH + username: + from_secret: docker_username + password: + from_secret: docker_password + platforms: + - linux/amd64 + - linux/arm64 + +depends_on: +- amd64 +- arm64 From e8763b87cc5b055f45f174eb04e936075494e1fb Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 13 May 2022 11:53:34 +0700 Subject: [PATCH 14/14] fix manifest docker_token --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1ed0350..ab030ce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -58,7 +58,7 @@ steps: username: from_secret: docker_username password: - from_secret: docker_password + from_secret: docker_token platforms: - linux/amd64 - linux/arm64