forked from ag_kommunikation/webseite
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.
This commit is contained in:
parent
eb86308602
commit
6eac032d6f
27
.drone.yml
27
.drone.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build_webseite
|
name: build_webseite_main
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
path: /workspace
|
path: /workspace
|
||||||
@ -12,3 +12,28 @@ steps:
|
|||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- dockerconfig
|
- 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
|
Loading…
Reference in New Issue
Block a user