Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) parallelise build #91

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/**