|
|
@ -103,58 +103,6 @@ steps: |
|
|
|
- "refs/tags/*test*" |
|
|
|
- "refs/tags/*test*" |
|
|
|
- "refs/tags/*dev*" |
|
|
|
- "refs/tags/*dev*" |
|
|
|
|
|
|
|
|
|
|
|
- name: docker_build_push_dind |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
- latest-dind |
|
|
|
|
|
|
|
- "${DRONE_TAG}-dind" |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: dind |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- lint |
|
|
|
|
|
|
|
- test |
|
|
|
|
|
|
|
- build |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: docker_build_push_binary |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
- latest |
|
|
|
|
|
|
|
- "${DRONE_TAG}" |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: binary-only |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- lint |
|
|
|
|
|
|
|
- test |
|
|
|
|
|
|
|
- build |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
# Starting the docker service to be used by dind |
|
|
|
# Starting the docker service to be used by dind |
|
|
|
- name: docker |
|
|
|
- name: docker |
|
|
@ -215,98 +163,163 @@ trigger: |
|
|
|
- main |
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
##################### |
|
|
|
########################### |
|
|
|
##### k3d-proxy ##### |
|
|
|
###### Docker Images ###### |
|
|
|
##################### |
|
|
|
########################### |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# +++ Docker Images +++ |
|
|
|
|
|
|
|
# Tagged using the auto_tag feature of the docker plugin |
|
|
|
|
|
|
|
# See http://plugins.drone.io/drone-plugins/drone-docker/#autotag |
|
|
|
|
|
|
|
# > if event type is `tag` |
|
|
|
|
|
|
|
# > > 1.0.0 produces docker tags 1, 1.0, 1.0.0 |
|
|
|
|
|
|
|
# > > 1.0.0-rc.1 produces docker tags 1.0.0-rc.1 |
|
|
|
|
|
|
|
# > if event type is `push` and target branch == default branch (main) |
|
|
|
|
|
|
|
# > > tag `latest` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################ |
|
|
|
|
|
|
|
##### Docker Images: amd64 ##### |
|
|
|
|
|
|
|
################################ |
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
name: proxy_linux_amd64 |
|
|
|
name: linux_amd64 |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
platform: |
|
|
|
os: linux |
|
|
|
os: linux |
|
|
|
arch: amd64 |
|
|
|
arch: amd64 |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: build_push |
|
|
|
|
|
|
|
|
|
|
|
- name: build_push_binary |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-amd64 |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: binary-only |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: build_push_dind |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-amd64 |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: dind |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
- ARCH=amd64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: build_push_proxy |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-proxy |
|
|
|
repo: rancher/k3d-proxy |
|
|
|
tags: |
|
|
|
auto_tag: true |
|
|
|
- latest-linux-amd64 |
|
|
|
auto_tag_suffix: linux-amd64 |
|
|
|
- "${DRONE_TAG}-linux-amd64" |
|
|
|
|
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
context: proxy/ |
|
|
|
context: proxy/ |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
- name: build_push_tools |
|
|
|
- tag |
|
|
|
image: plugins/docker |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d-tools |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-amd64 |
|
|
|
|
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
|
|
|
|
context: tools/ |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
event: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin |
|
|
|
|
|
|
|
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) |
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- main |
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################ |
|
|
|
|
|
|
|
##### Docker Images: arm ##### |
|
|
|
|
|
|
|
################################ |
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
name: proxy_linux_arm |
|
|
|
name: linux_arm |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
platform: |
|
|
|
os: linux |
|
|
|
os: linux |
|
|
|
arch: arm |
|
|
|
arch: arm |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: build_push |
|
|
|
- name: build_push_binary |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-proxy |
|
|
|
repo: rancher/k3d |
|
|
|
tags: |
|
|
|
auto_tag: true |
|
|
|
- latest-linux-arm |
|
|
|
auto_tag_suffix: linux-arm |
|
|
|
- "${DRONE_TAG}-linux-arm" |
|
|
|
dockerfile: Dockerfile |
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
target: binary-only |
|
|
|
context: proxy/ |
|
|
|
context: . |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
build_args: |
|
|
|
build_args: |
|
|
|
- ARCH=arm |
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
|
|
|
|
type: docker |
|
|
|
|
|
|
|
name: proxy_linux_arm64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
- name: build_push_dind |
|
|
|
os: linux |
|
|
|
image: plugins/docker |
|
|
|
arch: arm64 |
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-arm64 |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: dind |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
- ARCH=arm |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
- name: build_push_proxy |
|
|
|
- name: build_push |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-proxy |
|
|
|
repo: rancher/k3d-proxy |
|
|
|
tags: |
|
|
|
auto_tag: true |
|
|
|
- latest-linux-arm64 |
|
|
|
auto_tag_suffix: linux-arm |
|
|
|
- "${DRONE_TAG}-linux-arm64" |
|
|
|
|
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
context: proxy/ |
|
|
|
context: proxy/ |
|
|
|
username: |
|
|
|
username: |
|
|
@ -314,196 +327,184 @@ steps: |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
build_args: |
|
|
|
build_args: |
|
|
|
- ARCH=arm64 |
|
|
|
- ARCH=arm |
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
|
|
|
|
type: docker |
|
|
|
|
|
|
|
name: proxy_manifest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
|
|
|
|
os: linux |
|
|
|
|
|
|
|
arch: amd64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
- name: build_push_tools |
|
|
|
- name: push_manifest |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/manifest |
|
|
|
|
|
|
|
settings: |
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d-tools |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-arm |
|
|
|
|
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
|
|
|
|
context: tools/ |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
target: "rancher/k3d-proxy:${DRONE_TAG}" |
|
|
|
|
|
|
|
template: "rancher/k3d-proxy:${DRONE_TAG}-OS-ARCH" |
|
|
|
|
|
|
|
platforms: |
|
|
|
|
|
|
|
- linux/amd64 |
|
|
|
|
|
|
|
- linux/arm |
|
|
|
|
|
|
|
- linux/arm64 |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
event: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin |
|
|
|
|
|
|
|
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) |
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- main |
|
|
|
- main |
|
|
|
- proxy_linux_amd64 |
|
|
|
|
|
|
|
- proxy_linux_arm |
|
|
|
|
|
|
|
- proxy_linux_arm64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
##################### |
|
|
|
|
|
|
|
##### k3d-tools ##### |
|
|
|
################################ |
|
|
|
##################### |
|
|
|
##### Docker Images: arm64 ##### |
|
|
|
|
|
|
|
################################ |
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
name: tools_linux_amd64 |
|
|
|
name: linux_arm64 |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
platform: |
|
|
|
os: linux |
|
|
|
os: linux |
|
|
|
arch: amd64 |
|
|
|
arch: arm64 |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: build_push |
|
|
|
|
|
|
|
|
|
|
|
- name: build_push_binary |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-tools |
|
|
|
repo: rancher/k3d |
|
|
|
tags: |
|
|
|
auto_tag: true |
|
|
|
- latest-linux-amd64 |
|
|
|
auto_tag_suffix: linux-arm64 |
|
|
|
- "${DRONE_TAG}-linux-amd64" |
|
|
|
dockerfile: Dockerfile |
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
target: binary-only |
|
|
|
context: tools/ |
|
|
|
context: . |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
when: |
|
|
|
build_args: |
|
|
|
event: |
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
- name: build_push_dind |
|
|
|
type: docker |
|
|
|
image: plugins/docker |
|
|
|
name: tools_linux_arm |
|
|
|
environment: |
|
|
|
|
|
|
|
DOCKER_BUILDKIT: "1" |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-arm64 |
|
|
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
|
|
target: dind |
|
|
|
|
|
|
|
context: . |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- GIT_TAG_OVERRIDE=${DRONE_TAG} |
|
|
|
|
|
|
|
- ARCH=arm64 |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
- name: build_push_proxy |
|
|
|
os: linux |
|
|
|
image: plugins/docker |
|
|
|
arch: arm |
|
|
|
settings: |
|
|
|
|
|
|
|
repo: rancher/k3d-proxy |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
auto_tag_suffix: linux-arm64 |
|
|
|
|
|
|
|
dockerfile: proxy/Dockerfile |
|
|
|
|
|
|
|
context: proxy/ |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
build_args: |
|
|
|
|
|
|
|
- ARCH=arm64 |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
- name: build_push_tools |
|
|
|
- name: build_push |
|
|
|
|
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-tools |
|
|
|
repo: rancher/k3d-tools |
|
|
|
tags: |
|
|
|
auto_tag: true |
|
|
|
- latest-linux-arm |
|
|
|
auto_tag_suffix: linux-arm64 |
|
|
|
- "${DRONE_TAG}-linux-arm" |
|
|
|
|
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
context: tools/ |
|
|
|
context: tools/ |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
event: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin |
|
|
|
|
|
|
|
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) |
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- main |
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################## |
|
|
|
|
|
|
|
###### Docker Manifests ###### |
|
|
|
|
|
|
|
############################## |
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
name: tools_linux_arm64 |
|
|
|
name: manifests |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
platform: |
|
|
|
os: linux |
|
|
|
os: linux |
|
|
|
arch: arm64 |
|
|
|
arch: amd64 |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: build_push |
|
|
|
- name: push_manifest_binary |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/manifest |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
repo: rancher/k3d-tools |
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
- latest-linux-arm64 |
|
|
|
|
|
|
|
- "${DRONE_TAG}-linux-arm64" |
|
|
|
|
|
|
|
dockerfile: tools/Dockerfile |
|
|
|
|
|
|
|
context: tools/ |
|
|
|
|
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
when: |
|
|
|
spec: manifest.tmpl |
|
|
|
event: |
|
|
|
auto_tag: true |
|
|
|
- tag |
|
|
|
ignore_missing: false |
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
- name: push_manifest_dind |
|
|
|
event: |
|
|
|
image: plugins/manifest |
|
|
|
- tag |
|
|
|
settings: |
|
|
|
|
|
|
|
username: |
|
|
|
depends_on: |
|
|
|
from_secret: docker_username |
|
|
|
- main |
|
|
|
password: |
|
|
|
--- |
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
spec: dind-manifest.tmpl |
|
|
|
kind: pipeline |
|
|
|
auto_tag: true |
|
|
|
type: docker |
|
|
|
ignore_missing: false |
|
|
|
name: tools_manifest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
- name: push_manifest_proxy |
|
|
|
os: linux |
|
|
|
image: plugins/manifest |
|
|
|
arch: amd64 |
|
|
|
settings: |
|
|
|
|
|
|
|
username: |
|
|
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
|
|
password: |
|
|
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
|
|
spec: proxy/manifest.tmpl |
|
|
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
|
|
ignore_missing: false |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
- name: push_manifest_tools |
|
|
|
- name: push_manifest |
|
|
|
|
|
|
|
image: plugins/manifest |
|
|
|
image: plugins/manifest |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
username: |
|
|
|
username: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
password: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
target: "rancher/k3d-tools:${DRONE_TAG}" |
|
|
|
spec: tools/manifest.tmpl |
|
|
|
template: "rancher/k3d-tools:${DRONE_TAG}-OS-ARCH" |
|
|
|
auto_tag: true |
|
|
|
platforms: |
|
|
|
ignore_missing: false |
|
|
|
- linux/amd64 |
|
|
|
|
|
|
|
- linux/arm |
|
|
|
|
|
|
|
- linux/arm64 |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
event: |
|
|
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
event: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the manifest plugin |
|
|
|
|
|
|
|
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) |
|
|
|
|
|
|
|
|
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- main |
|
|
|
- main |
|
|
|
- tools_linux_amd64 |
|
|
|
- linux_amd64 |
|
|
|
- tools_linux_arm |
|
|
|
- linux_arm |
|
|
|
- tools_linux_arm64 |
|
|
|
- linux_arm64 |
|
|
|
|
|
|
|
|
|
|
|