Skip to content

Commit

Permalink
misc: switch to grafana/alloy-build-image (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto authored Apr 22, 2024
1 parent d1b33ad commit ef9ee63
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
46 changes: 23 additions & 23 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/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Lint
trigger:
event:
Expand All @@ -125,7 +125,7 @@ platform:
steps:
- commands:
- make GO_TAGS="nodocker" test
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Run Go tests
trigger:
event:
Expand All @@ -140,7 +140,7 @@ platform:
steps:
- commands:
- K8S_USE_DOCKER_NETWORK=1 make test
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Run Go tests
volumes:
- name: docker
Expand All @@ -163,7 +163,7 @@ platform:
steps:
- commands:
- go test -tags="nodocker,nonetwork" ./...
image: grafana/agent-build-image:0.40.2-windows
image: grafana/alloy-build-image:v0.1.0-windows
name: Run Go tests
trigger:
ref:
Expand All @@ -178,7 +178,7 @@ platform:
steps:
- commands:
- make alloy-image
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build container
volumes:
- name: docker
Expand All @@ -204,7 +204,7 @@ platform:
steps:
- commands:
- '& "C:/Program Files/git/bin/bash.exe" -c "make alloy-image-windows"'
image: grafana/agent-build-image:0.40.2-windows
image: grafana/alloy-build-image:v0.1.0-windows
name: Build container
volumes:
- name: docker
Expand All @@ -231,7 +231,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=amd64 GOARM=
make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -248,7 +248,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=arm64 GOARM=
make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -265,7 +265,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=ppc64le GOARM=
make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -282,7 +282,7 @@ steps:
- make generate-ui
- GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=s390x GOARM=
make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -298,7 +298,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=darwin GOARCH=amd64 GOARM= make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -314,7 +314,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=darwin GOARCH=arm64 GOARM= make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -330,7 +330,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=windows GOARCH=amd64 GOARM= make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -346,7 +346,7 @@ steps:
- commands:
- make generate-ui
- GO_TAGS="builtinassets" GOOS=freebsd GOARCH=amd64 GOARM= make alloy
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Build
trigger:
event:
Expand All @@ -362,7 +362,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -382,7 +382,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Publish container
volumes:
- name: docker
Expand Down Expand Up @@ -416,7 +416,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/agent-build-image:0.40.2-windows
image: grafana/alloy-build-image:v0.1.0-windows
name: Build containers
volumes:
- name: docker
Expand All @@ -439,7 +439,7 @@ steps:
- commands:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
failure: ignore
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Configure QEMU
volumes:
- name: docker
Expand All @@ -459,7 +459,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Publish container
volumes:
- name: docker
Expand Down Expand Up @@ -493,7 +493,7 @@ steps:
from_secret: docker_password
GCR_CREDS:
from_secret: gcr_admin
image: grafana/agent-build-image:0.40.2-windows
image: grafana/alloy-build-image:v0.1.0-windows
name: Build containers
volumes:
- name: docker
Expand Down Expand Up @@ -546,7 +546,7 @@ steps:
from_secret: gpg_private_key
GPG_PUBLIC_KEY:
from_secret: gpg_public_key
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Publish release
volumes:
- name: docker
Expand All @@ -569,7 +569,7 @@ steps:
- commands:
- DOCKER_OPTS="" make dist/alloy-linux-amd64
- DOCKER_OPTS="" make test-packages
image: grafana/agent-build-image:0.40.2
image: grafana/alloy-build-image:v0.1.0
name: Test Linux system packages
volumes:
- name: docker
Expand Down Expand Up @@ -667,6 +667,6 @@ kind: secret
name: updater_private_key
---
kind: signature
hmac: 335ecdc1356eb2f7f792d3055147a781d66bd3071c3dab334e82d60fd9cfedf5
hmac: 509bd7ed68a70f0e6930bd350dd71a7a3a48e199ac8e129b073ce32f08314c79

...
6 changes: 3 additions & 3 deletions .drone/util/build_image.jsonnet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
local version = std.extVar('BUILD_IMAGE_VERSION'),

linux: 'grafana/agent-build-image:%s' % version,
windows: 'grafana/agent-build-image:%s-windows' % version,
boringcrypto: 'grafana/agent-build-image:%s-boringcrypto' % version,
linux: 'grafana/alloy-build-image:%s' % version,
windows: 'grafana/alloy-build-image:%s-windows' % version,
boringcrypto: 'grafana/alloy-build-image:%s-boringcrypto' % version,
}
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/agent-build-image:0.40.2 as build
FROM --platform=$BUILDPLATFORM grafana/alloy-build-image:v0.1.0 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/agent-build-image:0.40.2-windows as builder
FROM grafana/alloy-build-image:v0.1.0-windows as builder
ARG VERSION
ARG RELEASE_BUILD=1

Expand Down
4 changes: 2 additions & 2 deletions tools/make/build-container.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
# variable names should be passed through to the container.

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

#
Expand Down

0 comments on commit ef9ee63

Please sign in to comment.