Skip to content

Commit

Permalink
build docker images on parallel steps
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Sep 5, 2020
1 parent 4e859ab commit ecdffde
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ local PipelineBuildContainer(arch='amd64') = {
username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' },
},
depends_on: ['build'],
when: {
ref: ['refs/pull/**'],
},
Expand All @@ -191,6 +192,7 @@ local PipelineBuildContainer(arch='amd64') = {
when: {
ref: ['refs/heads/master', 'refs/tags/**'],
},
depends_on: ['dryrun'],
},
{
name: 'publish-quay',
Expand All @@ -207,6 +209,7 @@ local PipelineBuildContainer(arch='amd64') = {
when: {
ref: ['refs/heads/master', 'refs/tags/**'],
},
depends_on: ['dryrun'],
},
],
depends_on: [
Expand Down
20 changes: 19 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ steps:
when:
ref:
- refs/pull/**
depends_on:
- build

- name: publish-dockerhub
image: plugins/docker:18-linux-amd64
Expand All @@ -210,6 +212,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

- name: publish-quay
image: plugins/docker:18-linux-amd64
Expand All @@ -227,6 +231,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

trigger:
ref:
Expand Down Expand Up @@ -264,6 +270,8 @@ steps:
when:
ref:
- refs/pull/**
depends_on:
- build

- name: publish-dockerhub
image: plugins/docker:18-linux-arm64
Expand All @@ -280,6 +288,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

- name: publish-quay
image: plugins/docker:18-linux-arm64
Expand All @@ -297,6 +307,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

trigger:
ref:
Expand Down Expand Up @@ -334,6 +346,8 @@ steps:
when:
ref:
- refs/pull/**
depends_on:
- build

- name: publish-dockerhub
image: plugins/docker:18-linux-arm
Expand All @@ -350,6 +364,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

- name: publish-quay
image: plugins/docker:18-linux-arm
Expand All @@ -367,6 +383,8 @@ steps:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun

trigger:
ref:
Expand Down Expand Up @@ -559,6 +577,6 @@ depends_on:

---
kind: signature
hmac: ea897ed402bf6868d1b837255bb85847cf5e813fd18851249d040e267507ab46
hmac: 44a9e95a43eeabae35a5ba7f8740758703a564e9d8ac1e22c731b3b7a29f1a22

...

0 comments on commit ecdffde

Please sign in to comment.