From a11da49965fba413913b2dd2236387465006ff14 Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Thu, 31 Mar 2022 14:53:50 +0530 Subject: [PATCH] Publish plugin with latest kaniko 1.8.0 image (#43) --- .drone.yml | 104 ++++++++++++++++++ .../docker/Dockerfile.linux.amd64.kaniko1.8.0 | 4 + docker/docker/manifest-kaniko1.8.0.tmpl | 13 +++ docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 | 4 + docker/ecr/manifest-kaniko1.8.0.tmpl | 13 +++ docker/gcr/Dockerfile.linux copy.amd64 | 4 + docker/gcr/manifest-kaniko1.8.0.tmpl | 13 +++ 7 files changed, 155 insertions(+) create mode 100644 docker/docker/Dockerfile.linux.amd64.kaniko1.8.0 create mode 100644 docker/docker/manifest-kaniko1.8.0.tmpl create mode 100644 docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 create mode 100644 docker/ecr/manifest-kaniko1.8.0.tmpl create mode 100644 docker/gcr/Dockerfile.linux copy.amd64 create mode 100644 docker/gcr/manifest-kaniko1.8.0.tmpl diff --git a/.drone.yml b/.drone.yml index 37d0f36..f9233f2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,56 @@ steps: exclude: - pull_request +- name: docker-kaniko-v1-8 + image: plugins/docker + settings: + repo: plugins/kaniko + auto_tag: true + auto_tag_suffix: linux-amd64-kaniko1.8.0 + daemon_off: false + dockerfile: docker/docker/Dockerfile.linux.amd64.kaniko1.8.0 + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + exclude: + - pull_request + +- name: gcr-kaniko-v1-8 + image: plugins/docker + settings: + repo: plugins/kaniko-gcr + auto_tag: true + auto_tag_suffix: linux-amd64-kaniko1.8.0 + daemon_off: false + dockerfile: docker/gcr/Dockerfile.linux.amd64.kaniko1.8.0 + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + exclude: + - pull_request + +- name: ecr-kaniko-v1-8 + image: plugins/docker + settings: + repo: plugins/kaniko-ecr + auto_tag: true + auto_tag_suffix: linux-amd64-kaniko1.8.0 + daemon_off: false + dockerfile: docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + exclude: + - pull_request --- kind: pipeline type: docker @@ -113,3 +163,57 @@ trigger: depends_on: - default + +--- +kind: pipeline +type: docker +name: notifications-docker-kaniko1-8 + +platform: + os: linux + arch: amd64 + +steps: +- name: manifest-docker + pull: always + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + password: + from_secret: docker_password + spec: docker/docker/manifest-kaniko1.8.0.tmpl + username: + from_secret: docker_username + +- name: manifest-gcr + pull: always + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + password: + from_secret: docker_password + spec: docker/gcr/manifest-kaniko1.8.0.tmpl + username: + from_secret: docker_username + +- name: manifest-ecr + pull: always + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + password: + from_secret: docker_password + spec: docker/ecr/manifest-kaniko1.8.0.tmpl + username: + from_secret: docker_username + +trigger: + ref: + - refs/heads/main + - "refs/tags/**" + +depends_on: +- default diff --git a/docker/docker/Dockerfile.linux.amd64.kaniko1.8.0 b/docker/docker/Dockerfile.linux.amd64.kaniko1.8.0 new file mode 100644 index 0000000..1836156 --- /dev/null +++ b/docker/docker/Dockerfile.linux.amd64.kaniko1.8.0 @@ -0,0 +1,4 @@ +FROM gcr.io/kaniko-project/executor:v1.8.0 + +ADD release/linux/amd64/kaniko-docker /kaniko/ +ENTRYPOINT ["/kaniko/kaniko-docker"] diff --git a/docker/docker/manifest-kaniko1.8.0.tmpl b/docker/docker/manifest-kaniko1.8.0.tmpl new file mode 100644 index 0000000..eb3326c --- /dev/null +++ b/docker/docker/manifest-kaniko1.8.0.tmpl @@ -0,0 +1,13 @@ +image: plugins/kaniko:{{#if build.tag}}{{trimPrefix "v" build.tag}}-kaniko1.8.0{{else}}latest-kaniko1.8.0{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: plugins/kaniko:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64-kaniko1.8.0 + platform: + architecture: amd64 + os: linux diff --git a/docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 b/docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 new file mode 100644 index 0000000..7083408 --- /dev/null +++ b/docker/ecr/Dockerfile.linux.amd64.kaniko1.8.0 @@ -0,0 +1,4 @@ +FROM gcr.io/kaniko-project/executor:v1.8.0 + +ADD release/linux/amd64/kaniko-ecr /kaniko/ +ENTRYPOINT ["/kaniko/kaniko-ecr"] diff --git a/docker/ecr/manifest-kaniko1.8.0.tmpl b/docker/ecr/manifest-kaniko1.8.0.tmpl new file mode 100644 index 0000000..5b3ab00 --- /dev/null +++ b/docker/ecr/manifest-kaniko1.8.0.tmpl @@ -0,0 +1,13 @@ +image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-kaniko1.8.0{{else}}latest-kaniko1.8.0{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64-kaniko1.8.0 + platform: + architecture: amd64 + os: linux diff --git a/docker/gcr/Dockerfile.linux copy.amd64 b/docker/gcr/Dockerfile.linux copy.amd64 new file mode 100644 index 0000000..982cd12 --- /dev/null +++ b/docker/gcr/Dockerfile.linux copy.amd64 @@ -0,0 +1,4 @@ +FROM gcr.io/kaniko-project/executor:v1.8.0 + +ADD release/linux/amd64/kaniko-gcr /kaniko/ +ENTRYPOINT ["/kaniko/kaniko-gcr"] diff --git a/docker/gcr/manifest-kaniko1.8.0.tmpl b/docker/gcr/manifest-kaniko1.8.0.tmpl new file mode 100644 index 0000000..8ba743a --- /dev/null +++ b/docker/gcr/manifest-kaniko1.8.0.tmpl @@ -0,0 +1,13 @@ +image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-kaniko1.8.0{{else}}latest-kaniko1.8.0{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64-kaniko1.8.0 + platform: + architecture: amd64 + os: linux