Browse Source

Reduce Prometheus pull requests builds (#9666)

* Reduce Prometheus builds

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
pull/9702/head
Julien Pivotto 3 years ago committed by GitHub
parent
commit
c564984daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .circleci/config.yml
  2. 2
      Makefile.common

17
.circleci/config.yml

@ -2,7 +2,7 @@
version: 2.1
orbs:
prometheus: prometheus/prometheus@0.11.0
prometheus: prometheus/prometheus@0.14.0
go: circleci/go@1.7.0
win: circleci/windows@2.3.0
@ -140,8 +140,19 @@ workflows:
only: /.*/
- prometheus/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
filters:
branches:
only: /^(main|release-.*|.*build-all.*)$/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- prometheus/publish_main:
@ -149,7 +160,7 @@ workflows:
requires:
- test_go
- test_ui
- build
- build_all
filters:
branches:
only: main
@ -159,7 +170,7 @@ workflows:
requires:
- test_go
- test_ui
- build
- build_all
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/

2
Makefile.common

@ -78,7 +78,7 @@ ifneq ($(shell which gotestsum),)
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
GOLANGCI_LINT :=

Loading…
Cancel
Save