add drone dual arch
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Jochen Welzel 2022-12-27 17:27:04 +01:00
parent 954afd3e6e
commit 6272c73489
1 changed files with 48 additions and 0 deletions

View File

@ -2,12 +2,16 @@
kind: pipeline
type: docker
name: build-drone-nsd-zones-docker
platform:
os: linux
arch: amd64
steps:
- name: push docker image
image: plugins/docker
settings:
repo: j10l/drone-nsd-zones
tags: latest-amd64
username:
from_secret: docker_username
password:
@ -16,3 +20,47 @@ volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: build-drone-nsd-zones-docker
platform:
os: linux
arch: arm64
steps:
- name: push docker image
image: plugins/docker
settings:
repo: j10l/drone-nsd-zones
tags: latest-arm64
username:
from_secret: docker_username
password:
from_secret: docker_password
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: upload_manifest
steps:
- name: upload_manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: j10l/drone-nsd-zones:latest
template: j10l/drone-nsd-zones:latest-ARCH
platforms:
- linux/amd64
- linux/arm64
depends_on:
- build_amd64
- build_arm64