CI: Run publishing steps only on OSS repo for main/version branches (#47315)

* Convert steps to run on OSS repo only

* Exclude versioned branches from publishing artifacts

* Change trigger -> when

* Add trigger to upload_* steps

* Add conditions to remaining steps

* Exclude release steps

* Bring back exclusion for release builds
This commit is contained in:
Dimitris Sotirakis
2022-04-06 10:46:05 +03:00
committed by GitHub
parent f7305965a4
commit bd386df617
5 changed files with 94 additions and 63 deletions
-3
View File
@@ -8,7 +8,4 @@ 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',
],
})