Skip to content

Commit

Permalink
Merge branch 'main' into karsten/document-approx-topk
Browse files Browse the repository at this point in the history
  • Loading branch information
JStickler authored Dec 10, 2024
2 parents 58dc4e4 + 2c5eabd commit 1a6e949
Show file tree
Hide file tree
Showing 502 changed files with 20,165 additions and 13,311 deletions.
6 changes: 0 additions & 6 deletions .github/release-workflows.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ local imageJobs = {

local weeklyImageJobs = {
loki: build.weeklyImage('loki', 'cmd/loki'),
fluentd: build.weeklyImage('fluent-plugin-loki', 'clients/cmd/fluentd', platform=['linux/amd64']),
'fluent-bit': build.weeklyImage('fluent-bit-plugin-loki', 'clients/cmd/fluent-bit', platform=['linux/amd64']),
logstash: build.weeklyImage('logstash-output-loki', 'clients/cmd/logstash', platform=['linux/amd64']),
logcli: build.weeklyImage('logcli', 'cmd/logcli'),
'loki-canary': build.weeklyImage('loki-canary', 'cmd/loki-canary'),
'loki-canary-boringcrypto': build.weeklyImage('loki-canary-boringcrypto', 'cmd/loki-canary-boringcrypto'),
promtail: build.weeklyImage('promtail', 'clients/cmd/promtail'),
querytee: build.weeklyImage('loki-query-tee', 'cmd/querytee', platform=['linux/amd64']),
'loki-docker-driver': build.weeklyDockerPlugin('grafana/loki-docker-driver', 'clients/cmd/docker-driver', platform=['linux/amd64', 'linux/arm64']),
};

local buildImageVersion = std.extVar('BUILD_IMAGE_VERSION');
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-tagged-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
bash .github/workflows/scripts/helm-tagged-release.sh ${RELEASE_VERSION}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: "chore: release loki helm chart ${{ steps.update.outputs.new_chart_version }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/helm-weekly-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
bash .github/workflows/scripts/helm-weekly-release.sh -k
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: "chore: release loki helm chart ${{ steps.update-k.outputs.new_chart_version }}"
Expand All @@ -57,7 +57,7 @@ jobs:
bash .github/workflows/scripts/helm-weekly-release.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: "chore: release loki helm chart ${{ steps.update.outputs.new_chart_version }}"
Expand Down
302 changes: 0 additions & 302 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,190 +7,6 @@
"release_lib_ref": "main"
"skip_validation": false
"use_github_app_token": true
"fluent-bit":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/fluent-bit/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/fluent-bit-plugin-loki:${{ steps.weekly-version.outputs.version }}"
"fluentd":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/fluentd/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/fluent-plugin-loki:${{ steps.weekly-version.outputs.version }}"
"logcli":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/cmd/logcli/Dockerfile"
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/logcli:${{ steps.weekly-version.outputs.version }}"
"logstash":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/logstash/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/logstash-output-loki:${{ steps.weekly-version.outputs.version }}"
"loki":
"env":
"BUILD_TIMEOUT": 60
Expand Down Expand Up @@ -329,78 +145,6 @@
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/loki-canary-boringcrypto:${{ steps.weekly-version.outputs.version }}"
"loki-docker-driver":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
platform="$(echo "${{ matrix.platform}}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")"
echo "platform=${platform}" >> $GITHUB_OUTPUT
echo "platform_short=$(echo ${{ matrix.platform }} | cut -d / -f 2)" >> $GITHUB_OUTPUT
if [[ "${platform}" == "linux/arm64" ]]; then
echo "plugin_arch=-arm64" >> $GITHUB_OUTPUT
else
echo "plugin_arch=" >> $GITHUB_OUTPUT
fi
"working-directory": "release"
- "name": "Build and export"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }},GOARCH=${{ steps.weekly-version.outputs.platform_short }}"
"context": "release"
"file": "release/clients/cmd/docker-driver/Dockerfile"
"outputs": "type=docker,dest=release/images/grafana/loki-docker-driver-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar"
"platforms": "${{ matrix.platform }}"
"push": false
"tags": "${{ env.IMAGE_PREFIX }}/grafana/loki-docker-driver:${{ steps.weekly-version.outputs.version }}"
- "env":
"BUILD_DIR": "release/clients/cmd/docker-driver"
"IMAGE_TAG": "${{ steps.weekly-version.outputs.version }}"
"name": "Package and push as Docker plugin"
"run": |
rm -rf "${{ env.BUILD_DIR }}/rootfs" || true
mkdir "${{ env.BUILD_DIR }}/rootfs"
tar -x -C "${{ env.BUILD_DIR }}/rootfs" -f "release/images/%s-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar"
docker plugin create "${{ env.IMAGE_TAG }}${{ steps.platform.outputs.plugin_arch }}" "${{ env.BUILD_DIR }}"
docker plugin push "${{ env.IMAGE_TAG }}${{ steps.platform.outputs.plugin_arch }}"
"working-directory": "release"
"strategy":
"matrix":
"platform":
- "linux/amd64"
- "linux/arm64"
"promtail":
"env":
"BUILD_TIMEOUT": 60
Expand Down Expand Up @@ -447,52 +191,6 @@
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/promtail:${{ steps.weekly-version.outputs.version }}"
"querytee":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/cmd/querytee/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/loki-query-tee:${{ steps.weekly-version.outputs.version }}"
"name": "publish images"
"on":
"push":
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nix-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: "Lint And Build Nix Flake"
on:
push:
branches:
- main
pull_request:
paths:
- "flake.nix"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: go
- uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: --timeout=5m
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/syft-sbom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4

- name: Anchore SBOM Action
uses: anchore/[email protected].7
uses: anchore/[email protected].8
with:
artifact-name: ${{ github.event.repository.name }}-spdx.json

Loading

0 comments on commit 1a6e949

Please sign in to comment.