From 9d03b0977d0b658444fc0ce0e190d1fe981e5783 Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Thu, 29 Oct 2026 00:55:51 +0100 Subject: [PATCH] fix(ci): split drone into two separate pipelines for PR and main --- .drone.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index c03123b..a454b30 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,9 @@ kind: pipeline type: docker -name: build-and-push +name: build-test trigger: event: - - push - pull_request steps: @@ -13,10 +12,18 @@ steps: settings: dockerfile: Dockerfile context: . - when: - event: - - pull_request +--- +kind: pipeline +type: docker +name: build-and-push +trigger: + event: + - push + branch: + - main + +steps: - name: build-and-push image: plugins/docker settings: @@ -29,6 +36,3 @@ steps: from_secret: REGISTRY_USERNAME password: from_secret: REGISTRY_PASSWORD - when: - branch: - - main -- 2.54.0