Skip to content

Commit

Permalink
Add docker multiarch support
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil committed Sep 11, 2023
1 parent 1d3ed07 commit d323cd6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,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
12 changes: 12 additions & 0 deletions manifest.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image: rancher/hardened-ib-sriov-cni:{{build.tag}}
manifests:
-
image: rancher/hardened-ib-sriov-cni:{{build.tag}}-amd64
platform:
architecture: amd64
os: linux
-
image: rancher/hardened-ib-sriov-cni:{{build.tag}}-arm64
platform:
architecture: arm64
os: linux

0 comments on commit d323cd6

Please sign in to comment.