Skip to content

Commit

Permalink
Update loki-build-image with go1.20.4 (grafana#9372)
Browse files Browse the repository at this point in the history
Continuation of grafana#9370

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
  • Loading branch information
Danny Kopping authored and Mohamed-Amine Bouqsimi committed May 4, 2023
1 parent a27ba96 commit dda3bf4
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "grafana/loki-build-image:0.28.2",
"image": "grafana/loki-build-image:0.28.3",
"containerEnv": {
"BUILD_IN_CONTAINER": "false"
},
Expand Down
42 changes: 21 additions & 21 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ steps:
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-drone-drift
- commands:
- make BUILD_IN_CONTAINER=false check-generated-files
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-generated-files
- commands:
- cd ..
Expand All @@ -110,7 +110,7 @@ steps:
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: clone-target-branch
when:
event:
Expand All @@ -121,15 +121,15 @@ steps:
- clone-target-branch
- check-generated-files
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: test
- commands:
- cd ../loki-target-branch
- BUILD_IN_CONTAINER=false make test
depends_on:
- clone-target-branch
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: test-target-branch
when:
event:
Expand All @@ -142,7 +142,7 @@ steps:
- test
- test-target-branch
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: compare-coverage
when:
event:
Expand All @@ -160,7 +160,7 @@ steps:
TOKEN:
from_secret: github_token
USER: grafanabot
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: report-coverage
when:
event:
Expand All @@ -170,15 +170,15 @@ steps:
depends_on:
- check-generated-files
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: lint
- commands:
- make BUILD_IN_CONTAINER=false check-mod
depends_on:
- test
- lint
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-mod
- commands:
- apk add make bash && make lint-scripts
Expand All @@ -189,21 +189,21 @@ steps:
depends_on:
- check-generated-files
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: loki
- commands:
- make BUILD_IN_CONTAINER=false check-doc
depends_on:
- loki
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-doc
- commands:
- make BUILD_IN_CONTAINER=false check-format GIT_TARGET_BRANCH="$DRONE_TARGET_BRANCH"
depends_on:
- loki
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-format
when:
event:
Expand All @@ -213,14 +213,14 @@ steps:
depends_on:
- loki
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: validate-example-configs
- commands:
- make BUILD_IN_CONTAINER=false check-example-config-doc
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: check-example-config-doc
- commands:
- mkdir -p /hugo/content/docs/loki/latest
Expand Down Expand Up @@ -253,7 +253,7 @@ steps:
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: loki-mixin-check
when:
event:
Expand All @@ -278,7 +278,7 @@ steps:
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: documentation-helm-reference-check
trigger:
ref:
Expand Down Expand Up @@ -1439,15 +1439,15 @@ steps:
NFPM_SIGNING_KEY:
from_secret: gpg_private_key
NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: write-key
- commands:
- make BUILD_IN_CONTAINER=false packages
environment:
NFPM_PASSPHRASE:
from_secret: gpg_passphrase
NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: test packaging
- commands:
- ./tools/packaging/verify-deb-install.sh
Expand All @@ -1473,7 +1473,7 @@ steps:
NFPM_PASSPHRASE:
from_secret: gpg_passphrase
NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: publish
when:
event:
Expand Down Expand Up @@ -1507,7 +1507,7 @@ steps:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
image: grafana/loki-build-image:0.28.2
image: grafana/loki-build-image:0.28.3
name: build and push
privileged: true
volumes:
Expand Down Expand Up @@ -1772,6 +1772,6 @@ kind: secret
name: gpg_private_key
---
kind: signature
hmac: 81941d0775a351bf94e90c6d4845e78c72de1d63f0b46f767b7deb147e2c7905
hmac: 81437a4d7383dd556801f441c1510191471ae0349da15361a0b661bdc44bb8cd

...
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DOCKER_IMAGE_DIRS := $(patsubst %/Dockerfile,%,$(DOCKERFILES))
BUILD_IN_CONTAINER ?= true

# ensure you run `make drone` after changing this
BUILD_IMAGE_VERSION := 0.28.2
BUILD_IMAGE_VERSION := 0.28.3

# Docker image info
IMAGE_PREFIX ?= grafana
Expand Down
2 changes: 1 addition & 1 deletion clients/cmd/docker-driver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion clients/cmd/promtail/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/promtail -f clients/cmd/promtail/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion clients/cmd/promtail/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is intended to be called from the root like so:
# docker build -t grafana/promtail -f clients/cmd/promtail/Dockerfile.debug .

FROM grafana/loki-build-image:0.28.1 as build
FROM grafana/loki-build-image:0.28.3 as build
ARG GOARCH="amd64"
COPY . /src/loki
WORKDIR /src/loki
Expand Down
2 changes: 1 addition & 1 deletion cmd/loki-canary/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion cmd/loki/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion cmd/loki/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile.debug .
Expand Down
2 changes: 1 addition & 1 deletion cmd/querytee/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so:
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/maintaining/release-loki-build-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ if any changes were made in the folder `./loki-build-image/`.
2. update the `BUILD_IMAGE_VERSION` variable in the `Makefile`
3. run `loki-build-image/version-updater.sh <new-version>` to update all the references
4. run `DRONE_SERVER=https://drone.grafana.net/ DRONE_TOKEN=<token> make drone` to update the Drone config to use the new build image
5. push the changes to the branch you created in step 1 and create a new PR
5. create a new PR

2 changes: 1 addition & 1 deletion operator/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.1
ARG BUILD_IMAGE=grafana/loki-build-image:0.28.3

FROM golang:1.20.4-alpine as goenv
RUN go env GOARCH > /goarch && \
Expand Down

0 comments on commit dda3bf4

Please sign in to comment.