Skip to content

Commit a448862

Browse files
docs: order configuration template fileds alphabetically (#12771) (#12837)
Co-authored-by: Trevor Whitney <[email protected]>
1 parent 9110a96 commit a448862

File tree

16 files changed

+3713
-3678
lines changed

16 files changed

+3713
-3678
lines changed

.drone/drone.jsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ local manifest_ecr(apps, archs) = pipeline('manifest-ecr') {
376376
],
377377
};
378378

379-
local build_image_tag = '0.33.1-golangci.1.51.2';
379+
local build_image_tag = '0.33.3';
380380
[
381381
pipeline('loki-build-image-' + arch) {
382382
workspace: {

.drone/drone.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
from_secret: docker_password
1818
repo: grafana/loki-build-image
1919
tags:
20-
- 0.33.1-golangci.1.51.2-amd64
20+
- 0.33.3-amd64
2121
username:
2222
from_secret: docker_username
2323
when:
@@ -54,7 +54,7 @@ steps:
5454
from_secret: docker_password
5555
repo: grafana/loki-build-image
5656
tags:
57-
- 0.33.1-golangci.1.51.2-arm64
57+
- 0.33.3-arm64
5858
username:
5959
from_secret: docker_username
6060
when:
@@ -86,7 +86,7 @@ steps:
8686
password:
8787
from_secret: docker_password
8888
spec: .drone/docker-manifest-build-image.tmpl
89-
target: loki-build-image:0.33.1-golangci.1.51.2
89+
target: loki-build-image:0.33.3
9090
username:
9191
from_secret: docker_username
9292
when:
@@ -146,7 +146,7 @@ steps:
146146
depends_on:
147147
- clone
148148
environment: {}
149-
image: grafana/loki-build-image:0.33.1
149+
image: grafana/loki-build-image:0.33.3
150150
name: loki-mixin-check
151151
when:
152152
event:
@@ -171,7 +171,7 @@ steps:
171171
depends_on:
172172
- clone
173173
environment: {}
174-
image: grafana/loki-build-image:0.33.1
174+
image: grafana/loki-build-image:0.33.3
175175
name: documentation-helm-reference-check
176176
trigger:
177177
ref:
@@ -1117,7 +1117,7 @@ steps:
11171117
from_secret: docker_password
11181118
DOCKER_USERNAME:
11191119
from_secret: docker_username
1120-
image: grafana/loki-build-image:0.33.1
1120+
image: grafana/loki-build-image:0.33.3
11211121
name: build and push
11221122
privileged: true
11231123
volumes:
@@ -1340,6 +1340,6 @@ kind: secret
13401340
name: gpg_private_key
13411341
---
13421342
kind: signature
1343-
hmac: ef80f57ffff4f20ac7e12ef7eec7d8cee1d0b217a8ec5a93fe8d459f0967e155
1343+
hmac: 361d32e18fac906a3f2cefddaefa6aa5e85a71664930c41976984e7747a7904f
13441344

13451345
...

.github/release-workflows.jsonnet

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ local imageJobs = {
2020
querytee: build.image('loki-query-tee', 'cmd/querytee', platform=['linux/amd64']),
2121
};
2222

23-
local buildImage = 'grafana/loki-build-image:0.33.1';
23+
local buildImageVersion = std.extVar('BUILD_IMAGE_VERSION');
24+
local buildImage = 'grafana/loki-build-image:%s' % buildImageVersion;
2425
local golangCiLintVersion = 'v1.55.1';
2526

2627
local imageBuildTimeoutMin = 40;

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"check":
33
"uses": "grafana/loki-release/.github/workflows/check.yml@main"
44
"with":
5-
"build_image": "grafana/loki-build-image:0.33.1"
5+
"build_image": "grafana/loki-build-image:0.33.3"
66
"golang_ci_lint_version": "v1.55.1"
77
"release_lib_ref": "main"
88
"skip_validation": false

.github/workflows/minor-release-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check:
1717
uses: "grafana/loki-release/.github/workflows/check.yml@main"
1818
with:
19-
build_image: "grafana/loki-build-image:0.33.1"
19+
build_image: "grafana/loki-build-image:0.33.3"
2020
golang_ci_lint_version: "v1.55.1"
2121
release_lib_ref: "main"
2222
skip_validation: false
@@ -141,7 +141,7 @@ jobs:
141141
--env SKIP_ARM \
142142
--volume .:/src/loki \
143143
--workdir /src/loki \
144-
--entrypoint /bin/sh "grafana/loki-build-image:0.33.1"
144+
--entrypoint /bin/sh "grafana/loki-build-image:0.33.3"
145145
git config --global --add safe.directory /src/loki
146146
echo "${NFPM_SIGNING_KEY}" > $NFPM_SIGNING_KEY_FILE
147147
make dist packages

.github/workflows/patch-release-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check:
1717
uses: "grafana/loki-release/.github/workflows/check.yml@main"
1818
with:
19-
build_image: "grafana/loki-build-image:0.33.1"
19+
build_image: "grafana/loki-build-image:0.33.3"
2020
golang_ci_lint_version: "v1.55.1"
2121
release_lib_ref: "main"
2222
skip_validation: false
@@ -141,7 +141,7 @@ jobs:
141141
--env SKIP_ARM \
142142
--volume .:/src/loki \
143143
--workdir /src/loki \
144-
--entrypoint /bin/sh "grafana/loki-build-image:0.33.1"
144+
--entrypoint /bin/sh "grafana/loki-build-image:0.33.3"
145145
git config --global --add safe.directory /src/loki
146146
echo "${NFPM_SIGNING_KEY}" > $NFPM_SIGNING_KEY_FILE
147147
make dist packages

Makefile

+11-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ DOCKER_IMAGE_DIRS := $(patsubst %/Dockerfile,%,$(DOCKERFILES))
3636
# or you can override this with an environment variable
3737
BUILD_IN_CONTAINER ?= true
3838

39-
# ensure you run `make drone` after changing this
40-
BUILD_IMAGE_VERSION ?= 0.33.1
39+
# ensure you run `make drone` and `make release-workflows` after changing this
40+
BUILD_IMAGE_VERSION ?= 0.33.3
4141

4242
# Docker image info
4343
IMAGE_PREFIX ?= grafana
@@ -656,7 +656,8 @@ ifneq (,$(findstring WIP,$(IMAGE_TAG)))
656656
false;
657657
endif
658658
echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
659-
$(SUDO) $(BUILD_OCI) -o type=registry -t $(IMAGE_PREFIX)/loki-build-image:$(IMAGE_TAG) ./loki-build-image
659+
$(SUDO) DOCKER_BUILDKIT=$(DOCKER_BUILDKIT) docker buildx build $(OCI_PLATFORMS) \
660+
-o type=registry -t $(IMAGE_PREFIX)/loki-build-image:$(BUILD_IMAGE_VERSION) ./loki-build-image
660661

661662
# loki-operator
662663
loki-operator-image:
@@ -881,4 +882,10 @@ scan-vulnerabilities: trivy snyk
881882
.PHONY: release-workflows
882883
release-workflows:
883884
pushd $(CURDIR)/.github && jb update && popd
884-
jsonnet -SJ .github/vendor -m .github/workflows .github/release-workflows.jsonnet
885+
jsonnet -SJ .github/vendor -m .github/workflows -V BUILD_IMAGE_VERSION=$(BUILD_IMAGE_VERSION) .github/release-workflows.jsonnet
886+
887+
.PHONY: release-workflows-check
888+
release-workflows-check:
889+
@$(MAKE) release-workflows
890+
@echo "Checking diff"
891+
@git diff --exit-code -- ".github/workflows/*release*" || (echo "Please build release workflows by running 'make release-workflows'" && false)

0 commit comments

Comments
 (0)