Build: only build on OSS for main/version (#46079)

* Only do main/version builds on OSS repo

* Sign drone

Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com>
This commit is contained in:
malcolmholmes 2022-03-29 13:57:54 +01:00 committed by GitHub
parent 30d0219de8
commit 562397ff8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View File

@ -569,6 +569,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -670,6 +672,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -1052,6 +1056,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -1134,6 +1140,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -1197,6 +1205,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -1281,6 +1291,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -1313,6 +1325,8 @@ trigger:
branch: main
event:
- push
repo:
- grafana/grafana
status:
- failure
type: docker
@ -3333,6 +3347,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -3433,6 +3449,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -3518,6 +3536,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -3574,6 +3594,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -3905,6 +3927,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -4048,6 +4072,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -4180,6 +4206,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -4260,6 +4288,8 @@ steps:
trigger:
ref:
- refs/heads/v[0-9]*
repo:
- grafana/grafana
type: docker
volumes:
- host:
@ -4411,6 +4441,6 @@ kind: secret
name: gcp_upload_artifacts_key
---
kind: signature
hmac: 7b8d6e6cb7f6b8846de99626b8e0e61c795e93f1a02b32103ec13547c9007f5e
hmac: b5191e597c2ea7a1152ab18ca2c4aece939024ceb8fd5c76581c087a64ae6ad3
...

View File

@ -190,6 +190,9 @@ def main_pipelines(edition):
trigger = {
'event': ['push',],
'branch': 'main',
'repo': [
'grafana/grafana',
],
}
drone_change_trigger = {
'event': ['push',],

View File

@ -8,4 +8,7 @@ ver_mode = 'release-branch'
def version_branch_pipelines():
return release_pipelines(ver_mode=ver_mode, trigger={
'ref': ['refs/heads/v[0-9]*'],
'repo': [
'grafana/grafana',
],
})