Skip to content

Commit

Permalink
Merge pull request #91 from tphoney/parallelise
Browse files Browse the repository at this point in the history
(maint) parallelise build
  • Loading branch information
TP Honey authored Dec 22, 2022
2 parents fe40149 + 2717b0a commit 17aa824
Showing 1 changed file with 75 additions and 6 deletions.
81 changes: 75 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: pipeline
type: vm
name: linux
name: testing

platform:
os: linux
Expand All @@ -14,8 +14,24 @@ steps:
image: golang:1.16
commands:
- go test -cover ./...
- sh scripts/build.sh

---
kind: pipeline
type: vm
name: linux-amd64

platform:
os: linux
arch: amd64

pool:
use: ubuntu

steps:
- name: build
image: golang:1.16
commands:
- sh scripts/build.sh
- name: publish
image: plugins/docker
pull: if-not-exists
Expand All @@ -33,6 +49,32 @@ steps:
- refs/heads/master
- refs/tags/*

depends_on:
- testing

trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**

---
kind: pipeline
type: vm
name: linux-arm64

platform:
os: linux
arch: arm64

pool:
use: ubuntu_arm64

steps:
- name: build
image: golang:1.16
commands:
- sh scripts/build.sh
- name: publish_arm64
image: plugins/docker
pull: if-not-exists
Expand All @@ -50,6 +92,28 @@ steps:
- refs/heads/master
- refs/tags/*

depends_on:
- testing

trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**

---
kind: pipeline
type: vm
name: manifest

platform:
os: linux
arch: amd64

pool:
use: ubuntu

steps:
- name: manifest
image: plugins/manifest
settings:
Expand All @@ -60,7 +124,12 @@ steps:
from_secret: docker_password
username:
from_secret: docker_username
when:
ref:
- refs/heads/master
- refs/tags/*

depends_on:
- linux-amd64
- linux-arm64

trigger:
ref:
- refs/heads/master
- refs/tags/**

0 comments on commit 17aa824

Please sign in to comment.