diff --git a/.drone.yml b/.drone.yml index 10a2ebb7746..aec33809cfa 100644 --- a/.drone.yml +++ b/.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 ... diff --git a/scripts/lib.star b/scripts/lib.star index d1935484414..1d24979514b 100644 --- a/scripts/lib.star +++ b/scripts/lib.star @@ -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]