fix(ci): split drone into two separate pipelines for PR and main
continuous-integration/drone/pr Build is failing

This commit is contained in:
2026-10-29 00:55:51 +01:00
parent ed48cacfbc
commit 9d03b0977d
+12 -8
View File
@@ -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