Skip to content

Commit a377cbb

Browse files
committed
point to tetrate, tweak ci and filters
1 parent 320b684 commit a377cbb

File tree

3 files changed

+36
-14
lines changed

3 files changed

+36
-14
lines changed

.circleci/config.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,11 @@ workflows:
8181
only: /^(main|master|release-.*|.*build-all.*)$/
8282
tags:
8383
only: /^v.*/
84+
# Build and publish images to the tetrate container image registry.
85+
# filters have been tweaks to use this job for release tags, not for publishing master.
8486
- 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
87+
context: org-global
88+
docker_hub_organization: tetrate
9889
requires:
9990
- test
10091
- build_all
@@ -103,3 +94,25 @@ workflows:
10394
only: /^v.*/
10495
branches:
10596
ignore: /.*/
97+
# - prometheus/publish_master:
98+
# context: org-context
99+
# docker_hub_organization: prometheuscommunity
100+
# quay_io_organization: prometheuscommunity
101+
# requires:
102+
# - test
103+
# - build_all
104+
# filters:
105+
# branches:
106+
# only: master
107+
# - prometheus/publish_release:
108+
# context: org-context
109+
# docker_hub_organization: prometheuscommunity
110+
# # quay_io_organization: prometheuscommunity
111+
# requires:
112+
# - test
113+
# - build_all
114+
# filters:
115+
# tags:
116+
# only: /^v.*/
117+
# branches:
118+
# ignore: /.*/

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)