run docker amd64 builds on drone, attempt multiarch

pull/61/head
Harvey Tindall 4 years ago
parent 06dada297b
commit 3a9e4950d4
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -22,12 +22,32 @@ steps:
when:
event: tag
---
name: arm64-docker
name: amd64-docker
kind: pipeline
type: docker
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: build
image: plugins/docker
settings:
username: hrfee
password:
from_secret: docker_key
repo: hrfee/jfa-go
tags: manifest-latest-amd64
when:
event: tag
---
name: aarch64-docker
kind: pipeline
type: docker
steps:
- name: arm64-ssh
- name: aarch64-ssh
image: appleboy/drone-ssh
volumes:
- name: ssh_key
@ -84,6 +104,31 @@ volumes:
host:
path: /root/.ssh/docker-build
---
name: docker-manifest
kind: pipeline
type: docker
steps:
- name: manifest
image: plugins/manifest
settings:
username: hrfee
password:
from_secret: docker_key
repo: hrfee/jfa-go
target: hrfee/jfa-go:latest
template: hrfee/jfa-go:manifest-latest-ARCH
platforms:
- linux/amd64
- linux/aarch64
- linux/armhf
when:
event: tag
depends_on:
- amd64-docker
- aarch64-docker
- armhf-docker
---
name: jfa-go-git
kind: pipeline
type: docker
@ -115,12 +160,26 @@ trigger:
- pull_request
---
name: arm64-docker-git
name: amd64-docker-git
kind: pipeline
type: docker
steps:
- name: build
image: plugins/docker
settings:
username: hrfee
password:
from_secret: docker_key
repo: hrfee/jfa-go
tags: manifest-unstable-amd64
---
name: aarch64-docker-git
kind: pipeline
type: docker
steps:
- name: arm64-ssh
- name: aarch64-ssh
image: appleboy/drone-ssh
volumes:
- name: ssh_key
@ -189,6 +248,31 @@ volumes:
host:
path: /root/.ssh/docker-build
---
name: docker-manifest-unstable
kind: pipeline
type: docker
steps:
- name: manifest
image: plugins/manifest
settings:
username: hrfee
password:
from_secret: docker_key
repo: hrfee/jfa-go
target: hrfee/jfa-go:latest
template: hrfee/jfa-go:manifest-unstable-ARCH
platforms:
- linux/amd64
- linux/aarch64
- linux/armhf
when:
event: tag
depends_on:
- amd64-docker-git
- aarch64-docker-git
- armhf-docker-git
---
name: jfa-go-pr
kind: pipeline
type: docker

Loading…
Cancel
Save