From 95494f950795e9bc8830875f304777ad005b8218 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 11 Sep 2023 12:26:09 +0200 Subject: [PATCH] Add docker multiarch support Signed-off-by: Manuel Buil --- .drone.yml | 25 ++++++++++++++++++++++++- manifest.tmpl | 12 ++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 manifest.tmpl diff --git a/.drone.yml b/.drone.yml index e484193..87e379a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -94,4 +94,27 @@ volumes: - name: docker host: path: /var/run/docker.sock -... + +--- +kind: pipeline +type: docker +name: manifest +platform: + os: linux + arch: amd64 +steps: +- name: push + image: plugins/manifest:1.2.3 + settings: + password: + from_secret: docker_password + username: + from_secret: docker_username + spec: manifest.tmpl + ignore_missing: true + when: + event: + - tag +depends_on: +- linux-amd64 +- linux-arm64 diff --git a/manifest.tmpl b/manifest.tmpl new file mode 100644 index 0000000..7518e7e --- /dev/null +++ b/manifest.tmpl @@ -0,0 +1,12 @@ +image: rancher/hardened-sriov-network-resources-injector:{{build.tag}} +manifests: + - + image: rancher/hardened-sriov-network-resources-injector:{{build.tag}}-amd64 + platform: + architecture: amd64 + os: linux + - + image: rancher/hardened-sriov-network-resources-injector:{{build.tag}}-arm64 + platform: + architecture: arm64 + os: linux