From 07baef79ffb3db977a1e56b4bc9760f21493c6d7 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 10 Jun 2023 11:08:56 +0200 Subject: [PATCH] ci: add parallelism --- .drone.yml | 66 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 24 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,29 +48,6 @@ steps: - pull_request - 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 image: thegeeklab/drone-docker-buildx:23 privileged: true @@ -80,6 +64,37 @@ steps: 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 + 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 image: thegeeklab/drone-docker-buildx:23 privileged: true @@ -98,3 +113,6 @@ steps: when: event: - tag + +depends_on: # bezieht sich auf linting pipeline + - linting