forked from prometheus-community/postgres_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into alessio-upstream-…
…sync
- Loading branch information
Showing
17 changed files
with
462 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
--- | ||
version: 2.1 | ||
|
||
orbs: | ||
prometheus: prometheus/[email protected] | ||
|
||
executors: | ||
# This must match .promu.yml. | ||
golang: | ||
docker: | ||
- image: cimg/go:1.21 | ||
|
||
jobs: | ||
test: | ||
executor: golang | ||
|
||
steps: | ||
- prometheus/setup_environment | ||
- run: GOHOSTARCH=386 GOARCH=386 make test | ||
- run: make | ||
- prometheus/store_artifact: | ||
file: postgres_exporter | ||
|
||
integration: | ||
docker: | ||
- image: cimg/go:1.20 | ||
- image: << parameters.postgres_image >> | ||
environment: | ||
POSTGRES_DB: circle_test | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: test | ||
|
||
parameters: | ||
postgres_image: | ||
type: string | ||
|
||
environment: | ||
DATA_SOURCE_NAME: 'postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable' | ||
GOOPTS: '-v -tags integration' | ||
|
||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: docker version | ||
- run: make build | ||
- run: make test | ||
|
||
workflows: | ||
version: 2 | ||
postgres_exporter: | ||
jobs: | ||
- test: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- integration: | ||
matrix: | ||
parameters: | ||
postgres_image: | ||
- circleci/postgres:11 | ||
- circleci/postgres:12 | ||
- circleci/postgres:13 | ||
- cimg/postgres:14.9 | ||
- cimg/postgres:15.4 | ||
- cimg/postgres:16.0 | ||
- 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.*/ | ||
branches: | ||
ignore: /^(main|master|release-.*|.*build-all.*)$/ | ||
- prometheus/build: | ||
name: build_all | ||
parallelism: 12 | ||
filters: | ||
branches: | ||
only: /^(main|master|release-.*|.*build-all.*)$/ | ||
tags: | ||
only: /^v.*/ | ||
- prometheus/publish_master: | ||
context: org-context | ||
docker_hub_organization: prometheuscommunity | ||
quay_io_organization: prometheuscommunity | ||
requires: | ||
- test | ||
- build_all | ||
filters: | ||
branches: | ||
only: master | ||
- prometheus/publish_release: | ||
context: org-context | ||
docker_hub_organization: prometheuscommunity | ||
quay_io_organization: prometheuscommunity | ||
requires: | ||
- test | ||
- build_all | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.