Skip to content

Commit

Permalink
Merge pull request #21 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 c969aeb + 95494f9 commit 6974419
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 @@ -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
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-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

0 comments on commit 6974419

Please sign in to comment.