Skip to content

Commit

Permalink
Merge branch 'main' into fix-loki-source-file-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum authored Dec 13, 2024
2 parents 6d8a5dd + 5d5c055 commit b83dbf5
Show file tree
Hide file tree
Showing 355 changed files with 8,845 additions and 9,580 deletions.
62 changes: 31 additions & 31 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name multiarch --driver docker-container --use
- docker buildx build --build-arg="GO_RUNTIME=golang:1.22.7-bullseye" --push --platform
- docker buildx build --build-arg="GO_RUNTIME=golang:1.23.3-bullseye" --push --platform
linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG ./tools/build-image
environment:
DOCKER_LOGIN:
Expand Down Expand Up @@ -44,7 +44,7 @@ steps:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name multiarch --driver docker-container --use
- docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.7-bullseye"
- docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.23.3-bullseye"
--push --platform linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG
./tools/build-image
environment:
Expand Down 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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6-windows
image: grafana/alloy-build-image:v0.1.7-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.6
image: grafana/alloy-build-image:v0.1.7
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.6-windows
image: grafana/alloy-build-image:v0.1.7-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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6-boringcrypto
image: grafana/alloy-build-image:v0.1.7-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.6-boringcrypto
image: grafana/alloy-build-image:v0.1.7-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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6-windows
image: grafana/alloy-build-image:v0.1.7-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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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.6-windows
image: grafana/alloy-build-image:v0.1.7-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.6
image: grafana/alloy-build-image:v0.1.7
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.6
image: grafana/alloy-build-image:v0.1.7
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: fd0699c2276e04bf3f9957b8eca427f3812c0aaf17bb969760f66574dcaf250c
hmac: 10e6be95fbe639c7701a96c7b0523e849b28389d09eda8b122de3c981a93c4c0

...
4 changes: 2 additions & 2 deletions .drone/pipelines/build_images.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ local locals = {
'docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD',
'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes',
'docker buildx create --name multiarch --driver docker-container --use',
'docker buildx build --build-arg="GO_RUNTIME=golang:1.22.7-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG ./tools/build-image',
'docker buildx build --build-arg="GO_RUNTIME=golang:1.23.3-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG ./tools/build-image',
],
}],
volumes: [{
Expand All @@ -55,7 +55,7 @@ local locals = {
'docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD',
'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes',
'docker buildx create --name multiarch --driver docker-container --use',
'docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.7-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG ./tools/build-image',
'docker buildx build --build-arg="GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.23.3-bullseye" --push --platform linux/amd64,linux/arm64 -t grafana/alloy-build-image:$IMAGE_TAG ./tools/build-image',
],
}],
volumes: [{
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/check-linux-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ on:

jobs:
check-linux-build-image:
runs-on: ubuntu-latest
runs-on: github-hosted-ubuntu-x64-large
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Remove unnecessary files
run: |
rm -rf /usr/share/dotnet
rm -rf "$AGENT_TOOLSDIRECTORY"
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf /opt/hostedtoolcache
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -25,7 +33,7 @@ jobs:
push: false
tags: grafana/alloy-build-image:latest
build-args: |
GO_RUNTIME=golang:1.22.7-bullseye
GO_RUNTIME=golang:1.23.3-bullseye
- name: Create test Linux build image for boring crypto
uses: docker/build-push-action@v6
Expand All @@ -34,4 +42,4 @@ jobs:
push: false
tags: grafana/alloy-build-image:latest
build-args: |
GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.7-bullseye
GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.23.3-bullseye
23 changes: 23 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy pr preview

on:
pull_request:
types:
- opened
- synchronize
- closed
paths:
- "docs/sources/**"

jobs:
deploy-pr-preview:
uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main
with:
sha: ${{ github.event.pull_request.head.sha }}
branch: ${{ github.head_ref }}
event_number: ${{ github.event.number }}
title: ${{ github.event.pull_request.title }}
repo: alloy
website_directory: content/docs/alloy/latest
relative_prefix: /docs/alloy/latest/
index_file: true
3 changes: 2 additions & 1 deletion .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
# platform, but we're really only looking for issues that are
# architecture-independent.
linux:
runs-on: ubuntu-latest
# We use a large runner for the additional disk space.
runs-on: github-hosted-ubuntu-x64-large
steps:
- uses: actions/checkout@v4
- name: Build image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzz-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"
cache: false

- name: Find cache location
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"
- name: Set OTEL Exporter Endpoint
run: echo "OTEL_EXPORTER_ENDPOINT=172.17.0.1:4318" >> $GITHUB_ENV
- name: Run tests
Expand Down
Loading

0 comments on commit b83dbf5

Please sign in to comment.