From e6c4ee43011b330eccb1b09b37fc03421b2046da Mon Sep 17 00:00:00 2001 From: Karsten Jeschkies Date: Fri, 3 Nov 2023 20:42:29 +0100 Subject: [PATCH] Make complete pipeline conditional --- .drone/drone.jsonnet | 2 +- .drone/drone.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone/drone.jsonnet b/.drone/drone.jsonnet index 5819c0be0ab6d..1cef4dd888d85 100644 --- a/.drone/drone.jsonnet +++ b/.drone/drone.jsonnet @@ -545,10 +545,10 @@ local build_image_tag = '0.32.0'; for arch in ['amd64', 'arm64'] ] + [ pipeline('loki-build-image-publish') { + when: onTagOrMain + onPath('loki-build-image/**'), steps: [ { name: 'manifest', - when: onTagOrMain + onPath('loki-build-image/**'), image: 'plugins/manifest:1.4.0', settings: { // the target parameter is abused for the app's name, as it is unused in spec mode. diff --git a/.drone/drone.yml b/.drone/drone.yml index eb6d9b8720e15..34eeb8cb58112 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -121,18 +121,18 @@ steps: target: loki-build-image:0.32.0 username: from_secret: docker_username - when: - event: - - push - - tag - paths: - - loki-build-image/** trigger: ref: - refs/heads/main - refs/heads/k??? - refs/tags/v* - refs/pull/*/head +when: + event: + - push + - tag + paths: + - loki-build-image/** --- kind: pipeline name: helm-test-image @@ -2106,6 +2106,6 @@ kind: secret name: gpg_private_key --- kind: signature -hmac: caf375427f92f78711f801f56341357b67737330e906346ee908a796c61dd314 +hmac: cac76702db65e10e1f0b8c81042aacb2ab3cdc66fe1a1c0844c68eff5958fc9c ...