From 6eac032d6f4c34074d9b09274f0b7f0be27b0fa7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 18 Aug 2021 15:41:14 +0200 Subject: [PATCH] fix: attempt to configure separate pipelines for prs and pushes to main Atm. two builds are created which lead to the missing recognition of the success of one of the builds. --- .drone.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7676ccd9..a43d74a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: build_webseite +name: build_webseite_main workspace: path: /workspace @@ -11,4 +11,29 @@ steps: image: registry.wtf-eg.net/lektor image_pull_secrets: - - dockerconfig \ No newline at end of file + - dockerconfig + +trigger: + branch: + - main + event: + - push + +--- +kind: pipeline +type: docker +name: build_webseite_pr + +workspace: + path: /workspace + +steps: + - name: build + image: registry.wtf-eg.net/lektor + +image_pull_secrets: + - dockerconfig + +trigger: + event: + - pull_request \ No newline at end of file