ci: add parallelism
This commit is contained in:
parent
54009fb408
commit
07baef79ff
1 changed files with 42 additions and 24 deletions
66
.drone.yml
66
.drone.yml
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: linting
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
||||||
|
@ -21,6 +21,13 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: selfhosted
|
||||||
|
|
||||||
|
environment:
|
||||||
|
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
||||||
- name: docker_build_and_push_selfhosted
|
- name: docker_build_and_push_selfhosted
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
image: thegeeklab/drone-docker-buildx:23
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -41,29 +48,6 @@ steps:
|
||||||
- pull_request
|
- pull_request
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
- name: docker_build_and_push_dockerhub
|
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
|
||||||
privileged: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: DOCKERHUB_USER
|
|
||||||
password:
|
|
||||||
from_secret: DOCKERHUB_PASS
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
repo: quotengrote/mdns-repeater-mikrotik
|
|
||||||
tags:
|
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
- ${DRONE_COMMIT_BRANCH}
|
|
||||||
- latest
|
|
||||||
platforms:
|
|
||||||
- linux/arm64
|
|
||||||
- linux/amd64
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: docker_build_and_push_selfhosted_tag
|
- name: docker_build_and_push_selfhosted_tag
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
image: thegeeklab/drone-docker-buildx:23
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -80,6 +64,37 @@ steps:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
depends_on: # bezieht sich auf linting pipeline
|
||||||
|
- linting
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: dockerhub
|
||||||
|
|
||||||
|
- name: docker_build_and_push_dockerhub
|
||||||
|
image: thegeeklab/drone-docker-buildx:23
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: DOCKERHUB_USER
|
||||||
|
password:
|
||||||
|
from_secret: DOCKERHUB_PASS
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
repo: quotengrote/mdns-repeater-mikrotik
|
||||||
|
tags:
|
||||||
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
|
- ${DRONE_COMMIT_BRANCH}
|
||||||
|
- latest
|
||||||
|
platforms:
|
||||||
|
- linux/arm64
|
||||||
|
- linux/amd64
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
- tag
|
||||||
|
|
||||||
- name: docker_build_and_push_dockerhub_tag
|
- name: docker_build_and_push_dockerhub_tag
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
image: thegeeklab/drone-docker-buildx:23
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -98,3 +113,6 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
depends_on: # bezieht sich auf linting pipeline
|
||||||
|
- linting
|
||||||
|
|
Reference in a new issue