Skip to content

Commit

Permalink
update go version and build version (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum authored Jan 20, 2025
1 parent fa8c111 commit 4d4a88d
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 38 deletions.
58 changes: 29 additions & 29 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ steps:
- commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make lint
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Lint
trigger:
event:
Expand All @@ -125,7 +125,7 @@ platform:
steps:
- commands:
- make GO_TAGS="nodocker" test
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Run Go tests
trigger:
event:
Expand All @@ -140,7 +140,7 @@ platform:
steps:
- commands:
- K8S_USE_DOCKER_NETWORK=1 make test
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Run Go tests
volumes:
- name: docker
Expand All @@ -164,7 +164,7 @@ steps:
- commands:
- '& "C:/Program Files/git/bin/bash.exe" -c ''go test -tags="nodocker,nonetwork"
./...'''
image: grafana/alloy-build-image:v0.1.7-windows
image: grafana/alloy-build-image:v0.1.8-windows
name: Run Go tests
trigger:
ref:
Expand All @@ -179,7 +179,7 @@ platform:
steps:
- commands:
- make alloy-image
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build container
volumes:
- name: docker
Expand All @@ -205,7 +205,7 @@ platform:
steps:
- commands:
- '& "C:/Program Files/git/bin/bash.exe" -c "make alloy-image-windows"'
image: grafana/alloy-build-image:v0.1.7-windows
image: grafana/alloy-build-image:v0.1.8-windows
name: Build container
volumes:
- name: docker
Expand All @@ -232,7 +232,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=amd64 GOARM=
make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -249,7 +249,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=arm64 GOARM=
make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -266,7 +266,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=ppc64le GOARM=
make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -283,7 +283,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=s390x GOARM=
make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -299,7 +299,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=darwin GOARCH=amd64 GOARM= make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -315,7 +315,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=darwin GOARCH=arm64 GOARM= make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -331,7 +331,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=windows GOARCH=amd64 GOARM= make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -347,7 +347,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=freebsd GOARCH=amd64 GOARM= make alloy
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Build
trigger:
event:
Expand All @@ -364,7 +364,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=amd64 GOARM=
GOEXPERIMENT=boringcrypto make alloy
image: grafana/alloy-build-image:v0.1.7-boringcrypto
image: grafana/alloy-build-image:v0.1.8-boringcrypto
name: Build
trigger:
event:
Expand All @@ -381,7 +381,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=arm64 GOARM=
GOEXPERIMENT=boringcrypto make alloy
image: grafana/alloy-build-image:v0.1.7-boringcrypto
image: grafana/alloy-build-image:v0.1.8-boringcrypto
name: Build
trigger:
event:
Expand All @@ -397,7 +397,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -417,7 +417,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Publish container
volumes:
- name: docker
Expand All @@ -440,7 +440,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -460,7 +460,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Publish container
volumes:
- name: docker
Expand Down Expand Up @@ -494,7 +494,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7-windows
image: grafana/alloy-build-image:v0.1.8-windows
name: Build containers
volumes:
- name: docker
Expand All @@ -517,7 +517,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -537,7 +537,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Publish container
volumes:
- name: docker
Expand All @@ -560,7 +560,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -580,7 +580,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Publish container
volumes:
- name: docker
Expand Down Expand Up @@ -614,7 +614,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/alloy-build-image:v0.1.7-windows
image: grafana/alloy-build-image:v0.1.8-windows
name: Build containers
volumes:
- name: docker
Expand Down Expand Up @@ -715,7 +715,7 @@ steps:
from_secret: gpg_private_key
GPG_PUBLIC_KEY:
from_secret: gpg_public_key
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Publish release
volumes:
- name: docker
Expand All @@ -738,7 +738,7 @@ steps:
- commands:
- DOCKER_OPTS="" make dist/alloy-linux-amd64
- DOCKER_OPTS="" make test-packages
image: grafana/alloy-build-image:v0.1.7
image: grafana/alloy-build-image:v0.1.8
name: Test Linux system packages
volumes:
- name: docker
Expand Down Expand Up @@ -836,6 +836,6 @@ kind: secret
name: updater_private_key
---
kind: signature
hmac: ead3953663bfb38918aa9f50a029cab5074c4198ee07ebf021dcae5e9ff6e923
hmac: 5c0ba3650cd2bbdccc1b19b96b07ac8f76d78b4dcd461dddc140857a86db1900

...
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Main (unreleased)

- Add livedebugging support for `prometheus.remote_write` (@ravishankar15)

### Other changes

- Use Go 1.23.5 for builds. (@wildum)

v1.6.0-rc.1
-----------------

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# default when running `docker buildx build` or when DOCKER_BUILDKIT=1 is set
# in environment variables.

FROM --platform=$BUILDPLATFORM grafana/alloy-build-image:v0.1.7 as build
FROM --platform=$BUILDPLATFORM grafana/alloy-build-image:v0.1.8 as build
ARG BUILDPLATFORM
ARG TARGETPLATFORM
ARG TARGETOS
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM grafana/alloy-build-image:v0.1.7-windows as builder
FROM grafana/alloy-build-image:v0.1.8-windows as builder
ARG VERSION
ARG RELEASE_BUILD=1
ARG GO_TAGS
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docs: check-cloudwatch-integration
endif

check-cloudwatch-integration:
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.23.3-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus/prometheus.exporter.cloudwatch.md
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.23.5-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus/prometheus.exporter.cloudwatch.md

generate-cloudwatch-integration:
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.23.3-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go generate
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.23.5-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go generate
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/grafana/alloy

go 1.23.3
go 1.23.5

require (
cloud.google.com/go/pubsub v1.40.0
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/integration-tests/configs/kafka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.3 as build
FROM golang:1.23.5 as build
WORKDIR /app/
COPY go.mod go.sum ./
COPY syntax/go.mod syntax/go.sum ./syntax/
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/integration-tests/configs/otel-gen/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.3 as build
FROM golang:1.23.5 as build
WORKDIR /app/
COPY go.mod go.sum ./
COPY syntax/go.mod syntax/go.sum ./syntax/
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/integration-tests/configs/prom-gen/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.3 as build
FROM golang:1.23.5 as build
WORKDIR /app/
COPY go.mod go.sum ./
COPY syntax/go.mod syntax/go.sum ./syntax/
Expand Down
2 changes: 1 addition & 1 deletion tools/make/build-container.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# variable names should be passed through to the container.

USE_CONTAINER ?= 0
BUILD_IMAGE_VERSION ?= v0.1.7
BUILD_IMAGE_VERSION ?= v0.1.8
BUILD_IMAGE ?= grafana/alloy-build-image:$(BUILD_IMAGE_VERSION)
DOCKER_OPTS ?= -it

Expand Down

0 comments on commit 4d4a88d

Please sign in to comment.