-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Docker image update process and consolidate configuration files
Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
8 changed files
with
267 additions
and
144 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,38 @@ | ||
name: Update alloy image versions | ||
|
||
sources: | ||
alloy-version: | ||
kind: dockerimage | ||
spec: | ||
image: docker.io/grafana/alloy | ||
versionfilter: | ||
kind: semver | ||
pattern: "~1.x" | ||
|
||
conditions: | ||
check-alloy-image: | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: docker.io/grafana/alloy | ||
tag: '{{ source "alloy-version" }}' | ||
|
||
targets: | ||
update-alloy-image-version-in-env: | ||
kind: "file" | ||
sourceid: alloy-version | ||
spec: | ||
files: | ||
- docker-compose/common/config/.env | ||
matchpattern: 'ALLOY_IMAGE=grafana/alloy:.*' | ||
replacepattern: 'ALLOY_IMAGE=grafana/alloy:{{ source "alloy-version" }}' | ||
update-alloy-image-version-in-compose-include: | ||
kind: yaml | ||
sourceid: alloy-version | ||
transformers: | ||
- addprefix: "${ALLOY_IMAGE:-docker.io/grafana/alloy:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/common/compose-include/alloy.yaml | ||
key: $.services.alloy.image | ||
|
38 changes: 38 additions & 0 deletions
38
.github/updatecli.d/docker-image/update-grafana-image.yaml
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,38 @@ | ||
name: Update grafana image versions | ||
|
||
sources: | ||
grafana-version: | ||
kind: dockerimage | ||
spec: | ||
image: docker.io/grafana/grafana | ||
versionfilter: | ||
kind: semver | ||
pattern: "~11.x" | ||
|
||
conditions: | ||
check-grafana-image: | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: docker.io/grafana/grafana | ||
tag: '{{ source "grafana-version" }}' | ||
|
||
targets: | ||
update-grafana-image-version-in-env: | ||
kind: "file" | ||
sourceid: grafana-version | ||
spec: | ||
files: | ||
- docker-compose/common/config/.env | ||
matchpattern: 'GRAFANA_IMAGE=grafana/grafana:.*' | ||
replacepattern: 'GRAFANA_IMAGE=grafana/grafana:{{ source "grafana-version" }}' | ||
|
||
update-grafana-image-version-in-compose-include: | ||
kind: yaml | ||
sourceid: grafana-version | ||
transformers: | ||
- addprefix: "${GRAFANA_IMAGE:-docker.io/grafana/grafana:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/common/compose-include/grafana.yaml | ||
key: $.services.grafana.image |
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,68 @@ | ||
name: Update loki image versions | ||
|
||
sources: | ||
loki-version: | ||
kind: dockerimage | ||
spec: | ||
image: docker.io/grafana/loki | ||
versionfilter: | ||
kind: semver | ||
pattern: "~3.x" | ||
|
||
conditions: | ||
check-loki-image: | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: docker.io/grafana/loki | ||
tag: '{{ source "loki-version" }}' | ||
|
||
targets: | ||
update-loki-image-version-in-env: | ||
kind: "file" | ||
sourceid: loki-version | ||
spec: | ||
files: | ||
- docker-compose/common/config/.env | ||
matchpattern: 'LOKI_IMAGE=grafana/loki:.*' | ||
replacepattern: 'LOKI_IMAGE=grafana/loki:{{ source "loki-version" }}' | ||
|
||
update-loki-image-version-in-compose-include: | ||
kind: yaml | ||
sourceid: loki-version | ||
transformers: | ||
- addprefix: "${LOKI_IMAGE:-docker.io/grafana/loki:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/common/compose-include/loki.yaml | ||
key: $.services.loki.image | ||
|
||
update-loki-image-version-in-all-in-one-mode: | ||
kind: yaml | ||
sourceid: loki-version | ||
transformers: | ||
- addprefix: "${LOKI_IMAGE:-docker.io/grafana/loki:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
key: $.services.loki.image | ||
|
||
update-loki-image-version-in-read-write-mode: | ||
kind: yaml | ||
sourceid: loki-version | ||
transformers: | ||
- addprefix: "&lokiImage ${LOKI_IMAGE:-docker.io/grafana/loki:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/read-write-mode/logs/compose.yaml | ||
key: $.services.loki-read.image | ||
|
||
update-loki-image-version-in-microservices-mode: | ||
kind: yaml | ||
sourceid: loki-version | ||
transformers: | ||
- addprefix: "&lokiImage ${LOKI_IMAGE:-docker.io/grafana/loki:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/microservices-mode/logs/compose.yaml | ||
key: $.services.distributor.image |
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
58 changes: 58 additions & 0 deletions
58
.github/updatecli.d/docker-image/update-pyroscope-image.yaml
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,58 @@ | ||
name: Update pyroscope image versions | ||
|
||
sources: | ||
pyroscope-version: | ||
kind: dockerimage | ||
spec: | ||
image: docker.io/grafana/pyroscope | ||
versionfilter: | ||
kind: semver | ||
pattern: "~1.x" | ||
|
||
conditions: | ||
check-pyroscope-image: | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: docker.io/grafana/pyroscope | ||
tag: '{{ source "pyroscope-version" }}' | ||
|
||
targets: | ||
update-pyroscope-image-version-in-env: | ||
kind: "file" | ||
sourceid: pyroscope-version | ||
spec: | ||
files: | ||
- docker-compose/common/config/.env | ||
matchpattern: 'PYROSCOPE_IMAGE=grafana/pyroscope:.*' | ||
replacepattern: 'PYROSCOPE_IMAGE=grafana/pyroscope:{{ source "pyroscope-version" }}' | ||
|
||
update-pyroscope-image-version-in-compose-include: | ||
kind: yaml | ||
sourceid: pyroscope-version | ||
transformers: | ||
- addprefix: "${PYROSCOPE_IMAGE:-docker.io/grafana/pyroscope:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/common/compose-include/pyroscope.yaml | ||
key: $.services.pyroscope.image | ||
|
||
update-pyroscope-image-version-in-all-in-one-mode: | ||
kind: yaml | ||
sourceid: pyroscope-version | ||
transformers: | ||
- addprefix: "${PYROSCOPE_IMAGE:-docker.io/grafana/pyroscope:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
key: $.services.pyroscope.image | ||
|
||
update-pyroscope-image-version-in-microservices-mode: | ||
kind: yaml | ||
sourceid: pyroscope-version | ||
transformers: | ||
- addprefix: "&pyroscopeImage ${PYROSCOPE_IMAGE:-docker.io/grafana/pyroscope:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/microservices-mode/profiles/compose.yaml | ||
key: $.services.distributor.image |
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,58 @@ | ||
name: Update tempo image versions | ||
|
||
sources: | ||
tempo-version: | ||
kind: dockerimage | ||
spec: | ||
image: docker.io/grafana/tempo | ||
versionfilter: | ||
kind: semver | ||
pattern: "~2.x" | ||
|
||
conditions: | ||
check-tempo-image: | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: docker.io/grafana/tempo | ||
tag: '{{ source "tempo-version" }}' | ||
|
||
targets: | ||
update-tempo-image-version-in-env: | ||
kind: "file" | ||
sourceid: tempo-version | ||
spec: | ||
files: | ||
- docker-compose/common/config/.env | ||
matchpattern: 'TEMPO_IMAGE=grafana/tempo:.*' | ||
replacepattern: 'TEMPO_IMAGE=grafana/tempo:{{ source "tempo-version" }}' | ||
|
||
update-tempo-image-version-in-compose-include: | ||
kind: yaml | ||
sourceid: tempo-version | ||
transformers: | ||
- addprefix: "${TEMPO_IMAGE:-docker.io/grafana/tempo:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/common/compose-include/tempo.yaml | ||
key: $.services.tempo.image | ||
|
||
update-tempo-image-version-in-all-in-one-mode: | ||
kind: yaml | ||
sourceid: tempo-version | ||
transformers: | ||
- addprefix: "${TEMPO_IMAGE:-docker.io/grafana/tempo:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/monolithic-mode/all-in-one/compose.yaml | ||
key: $.services.tempo.image | ||
|
||
update-tempo-image-version-in-microservices-mode: | ||
kind: yaml | ||
sourceid: tempo-version | ||
transformers: | ||
- addprefix: "&tempoImage ${TEMPO_IMAGE:-docker.io/grafana/tempo:" | ||
- addsuffix: "}" | ||
spec: | ||
file: docker-compose/microservices-mode/traces/compose.yaml | ||
key: $.services.distributor.image |
Oops, something went wrong.