Skip to content

Commit 62d3ba5

Browse files
committed
point to tetrate, tweak ci
1 parent 320b684 commit 62d3ba5

File tree

3 files changed

+39
-15
lines changed

3 files changed

+39
-15
lines changed

.circleci/config.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,35 @@ workflows:
8181
only: /^(main|master|release-.*|.*build-all.*)$/
8282
tags:
8383
only: /^v.*/
84-
- prometheus/publish_master:
85-
context: org-context
86-
docker_hub_organization: prometheuscommunity
87-
quay_io_organization: prometheuscommunity
88-
requires:
89-
- test
90-
- build_all
91-
filters:
92-
branches:
93-
only: master
94-
- prometheus/publish_release:
95-
context: org-context
96-
docker_hub_organization: prometheuscommunity
97-
quay_io_organization: prometheuscommunity
84+
# - prometheus/publish_master:
85+
# context: org-context
86+
# docker_hub_organization: prometheuscommunity
87+
# quay_io_organization: prometheuscommunity
88+
# requires:
89+
# - test
90+
# - build_all
91+
# filters:
92+
# branches:
93+
# only: master
94+
# - prometheus/publish_release:
95+
# context: org-context
96+
# docker_hub_organization: prometheuscommunity
97+
# # quay_io_organization: prometheuscommunity
98+
# requires:
99+
# - test
100+
# - build_all
101+
# filters:
102+
# tags:
103+
# only: /^v.*/
104+
# branches:
105+
# ignore: /.*/
106+
# Build and publish images to a container image registry.
107+
- prometheus/publish_images:
108+
context: org-global
109+
registry: docker.io
110+
organization: tetrate
111+
login_variable: DOCKER_LOGIN
112+
password_variable: DOCKER_PASSWORD
98113
requires:
99114
- test
100115
- build_all

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ all::
33

44
# Needs to be defined before including Makefile.common to auto-generate targets
55
DOCKER_ARCHS ?= amd64 armv7 arm64 ppc64le
6-
DOCKER_REPO ?= prometheuscommunity
6+
DOCKER_REPO ?= tetrate
77

88
include Makefile.common
99

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,12 @@ docker run -p 5432:5432 -e POSTGRES_DB=circle_test -e POSTGRES_USER=postgres -e
445445
# Run the integration tests
446446
DATA_SOURCE_NAME='postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable' GOOPTS='-v -tags integration' make test
447447
```
448+
449+
# **Tetrate CVE builds**
450+
Upstream is not fixing CVEs reported by security scanners, but not applicable to postgres_exporter image.
451+
These false positives can be fixed by cutting tetrate specific patch releases as follows:
452+
- Push a commit to a release branch in our fork (e.g. `release-v0.18.1` branch) with the changes to fix the CVEs.
453+
- In this PR, include changes to the `VERSION` file to the new version name following the pattern `<current-version>-tetrate-v<patch-number>`. For example `v0.18.1-tetrate-v0` is the first CVEs fixing patch for `v0.18.1`.
454+
- Once the PR is approved and merged:
455+
- Create the tag and push it to the repository.
456+
- CircleCI will automatically build the images and push them to the [tetrate docker hub repository](https://hub.docker.com/r/tetrate/postgres_exporter).

0 commit comments

Comments
 (0)