Merge pull request #3023 from prometheus/superq/speedup_build

Speedup CI builds
This commit is contained in:
Ben Kochie 2022-07-25 18:40:59 +02:00 committed by GitHub
commit 16b4c3db88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,10 +125,21 @@ workflows:
only: /.*/
- prometheus/build:
name: build
parallelism: 8
parallelism: 3
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
filters:
tags:
only: /.*/
ignore: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /^(main|release-.*|.*build-all.*)$/
- prometheus/build:
name: build_all
parallelism: 12
filters:
branches:
only: /^(main|release-.*|.*build-all.*)$/
tags:
only: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
- mixin:
filters:
tags:
@ -138,7 +149,7 @@ workflows:
requires:
- test_frontend
- test
- build
- build_all
filters:
branches:
only: main
@ -147,7 +158,7 @@ workflows:
requires:
- test_frontend
- test
- build
- build_all
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/