Skip to content

Commit

Permalink
Merge pull request rancher#18 from manuelbuil/multiarch
Browse files Browse the repository at this point in the history
Add docker multiarch support
  • Loading branch information
manuelbuil authored Sep 11, 2023
2 parents 1d3ed07 + d323cd6 commit 6be9e76
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 6be9e76

Please sign in to comment.