mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
Reduce Prometheus pull requests builds (#9666)
* Reduce Prometheus builds Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
5e06527190
commit
c564984daa
|
@ -2,7 +2,7 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
prometheus: prometheus/prometheus@0.11.0
|
prometheus: prometheus/prometheus@0.14.0
|
||||||
go: circleci/go@1.7.0
|
go: circleci/go@1.7.0
|
||||||
win: circleci/windows@2.3.0
|
win: circleci/windows@2.3.0
|
||||||
|
|
||||||
|
@ -140,8 +140,19 @@ workflows:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
- prometheus/build:
|
- prometheus/build:
|
||||||
name: build
|
name: build
|
||||||
|
parallelism: 3
|
||||||
|
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||||
|
branches:
|
||||||
|
ignore: /^(main|release-.*|.*build-all.*)$/
|
||||||
|
- prometheus/build:
|
||||||
|
name: build_all
|
||||||
parallelism: 12
|
parallelism: 12
|
||||||
filters:
|
filters:
|
||||||
|
branches:
|
||||||
|
only: /^(main|release-.*|.*build-all.*)$/
|
||||||
tags:
|
tags:
|
||||||
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||||
- prometheus/publish_main:
|
- prometheus/publish_main:
|
||||||
|
@ -149,7 +160,7 @@ workflows:
|
||||||
requires:
|
requires:
|
||||||
- test_go
|
- test_go
|
||||||
- test_ui
|
- test_ui
|
||||||
- build
|
- build_all
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: main
|
only: main
|
||||||
|
@ -159,7 +170,7 @@ workflows:
|
||||||
requires:
|
requires:
|
||||||
- test_go
|
- test_go
|
||||||
- test_ui
|
- test_ui
|
||||||
- build
|
- build_all
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||||
|
|
|
@ -78,7 +78,7 @@ ifneq ($(shell which gotestsum),)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PROMU_VERSION ?= 0.12.0
|
PROMU_VERSION ?= 0.13.0
|
||||||
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
|
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
|
||||||
|
|
||||||
GOLANGCI_LINT :=
|
GOLANGCI_LINT :=
|
||||||
|
|
Loading…
Reference in a new issue