1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-02 07:37:48 +02:00

run docker amd64 builds on drone, attempt multiarch

This commit is contained in:
Harvey Tindall 2021-02-11 21:18:32 +00:00
parent 06dada297b
commit 3a9e4950d4
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -22,12 +22,32 @@ steps:
when: when:
event: tag 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 kind: pipeline
type: docker type: docker
steps: steps:
- name: arm64-ssh - name: aarch64-ssh
image: appleboy/drone-ssh image: appleboy/drone-ssh
volumes: volumes:
- name: ssh_key - name: ssh_key
@ -84,6 +104,31 @@ volumes:
host: host:
path: /root/.ssh/docker-build 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 name: jfa-go-git
kind: pipeline kind: pipeline
type: docker type: docker
@ -115,12 +160,26 @@ trigger:
- pull_request - 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 kind: pipeline
type: docker type: docker
steps: steps:
- name: arm64-ssh - name: aarch64-ssh
image: appleboy/drone-ssh image: appleboy/drone-ssh
volumes: volumes:
- name: ssh_key - name: ssh_key
@ -189,6 +248,31 @@ volumes:
host: host:
path: /root/.ssh/docker-build 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 name: jfa-go-pr
kind: pipeline kind: pipeline
type: docker type: docker