mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Run builds on single-build agents (#37702)
This is an effort to reduce cache errors when multiple agents try to build the yarn cache at the same time https://github.com/grafana/deployment_tools/issues/13329
This commit is contained in:
parent
33aeee60ff
commit
7e63118ea9
35
.drone.yml
35
.drone.yml
@ -235,6 +235,9 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_USER: grafana
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
@ -563,6 +566,9 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_USER: grafana
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
@ -663,6 +669,9 @@ steps:
|
||||
depends_on:
|
||||
- initialize
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
@ -1005,6 +1014,9 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_USER: grafana
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
@ -1477,6 +1489,9 @@ services:
|
||||
image_pull_secrets:
|
||||
- dockerconfigjson
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
@ -1617,6 +1632,9 @@ steps:
|
||||
depends_on:
|
||||
- initialize
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
@ -1948,6 +1966,9 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_USER: grafana
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- custom
|
||||
@ -2414,6 +2435,9 @@ services:
|
||||
image_pull_secrets:
|
||||
- dockerconfigjson
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- custom
|
||||
@ -2554,6 +2578,9 @@ steps:
|
||||
depends_on:
|
||||
- initialize
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- custom
|
||||
@ -2860,6 +2887,9 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_USER: grafana
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/v*
|
||||
@ -3325,6 +3355,9 @@ services:
|
||||
image_pull_secrets:
|
||||
- dockerconfigjson
|
||||
|
||||
node:
|
||||
type: no-parallel
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/v*
|
||||
@ -3496,6 +3529,6 @@ get:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 68edb93a18f2e16f8a9b2bf3d21073e181e56d2420feec37ae80b121fc2faeeb
|
||||
hmac: 4f23649a1678c66fb96af929675bcf569cca3b208d425eace86150d981ee9fbb
|
||||
|
||||
...
|
||||
|
@ -17,20 +17,28 @@ def pipeline(
|
||||
):
|
||||
if platform != 'windows':
|
||||
platform_conf = {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64'
|
||||
},
|
||||
# A shared cache is used on the host
|
||||
# To avoid issues with parallel builds, we run this repo on single build agents
|
||||
'node': {
|
||||
'type': 'no-parallel'
|
||||
}
|
||||
}
|
||||
else:
|
||||
platform_conf = {
|
||||
'os': 'windows',
|
||||
'arch': 'amd64',
|
||||
'version': '1809',
|
||||
'platform': {
|
||||
'os': 'windows',
|
||||
'arch': 'amd64',
|
||||
'version': '1809',
|
||||
}
|
||||
}
|
||||
|
||||
pipeline = {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'platform': platform_conf,
|
||||
'name': name,
|
||||
'trigger': trigger,
|
||||
'services': services,
|
||||
@ -39,6 +47,7 @@ def pipeline(
|
||||
) + steps,
|
||||
'depends_on': depends_on,
|
||||
}
|
||||
pipeline.update(platform_conf)
|
||||
|
||||
if edition in ('enterprise', 'enterprise2'):
|
||||
pipeline['image_pull_secrets'] = [pull_secret]
|
||||
|
Loading…
Reference in New Issue
Block a user