aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorMichael Grote2023-06-10 11:08:56 +0200
committerMichael Grote2023-06-10 11:08:56 +0200
commit07baef79ffb3db977a1e56b4bc9760f21493c6d7 (patch)
tree385d41f040a6466fc39bfc2a4b4f4ad998f56a31 /.drone.yml
parent54009fb408fc9c71003a0d30c13745399ab4f49c (diff)
ci: add parallelism
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml52
1 files changed, 35 insertions, 17 deletions
diff --git a/.drone.yml b/.drone.yml
index 1a3b606..99d3b0d 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
-name: default
+name: linting
environment:
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
@@ -21,6 +21,13 @@ steps:
commands:
- 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
image: thegeeklab/drone-docker-buildx:23
privileged: true
@@ -41,6 +48,30 @@ steps:
- pull_request
- tag
+ - name: docker_build_and_push_selfhosted_tag
+ image: thegeeklab/drone-docker-buildx:23
+ privileged: true
+ settings:
+ dockerfile: Dockerfile
+ repo: registry.mgrote.net/mdns-repeater-mikrotik
+ registry: registry.mgrote.net
+ tags:
+ - ${DRONE_TAG}
+ platforms:
+ - linux/arm64
+ - linux/amd64
+ when:
+ event:
+ - 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
@@ -64,22 +95,6 @@ steps:
- pull_request
- tag
- - name: docker_build_and_push_selfhosted_tag
- image: thegeeklab/drone-docker-buildx:23
- privileged: true
- settings:
- dockerfile: Dockerfile
- repo: registry.mgrote.net/mdns-repeater-mikrotik
- registry: registry.mgrote.net
- tags:
- - ${DRONE_TAG}
- platforms:
- - linux/arm64
- - linux/amd64
- when:
- event:
- - tag
-
- name: docker_build_and_push_dockerhub_tag
image: thegeeklab/drone-docker-buildx:23
privileged: true
@@ -98,3 +113,6 @@ steps:
when:
event:
- tag
+
+depends_on: # bezieht sich auf linting pipeline
+ - linting