Skip to content

Commit

Permalink
[chore] Adapt renovate config to update all repository dependencies (#…
Browse files Browse the repository at this point in the history
…377)

Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT authored Nov 21, 2024
1 parent d12a66b commit 0c2e65b
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .github/actions/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ inputs:
required: false
description: "Name of the kind cluster"
default: "kind"
env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"
runs:
using: "composite"
steps:

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
branches:
- main

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"
# renovate: datasource=github-releases depName=tcort/markdown-link-check
MARKDOWN_LINK_CHECK_VERSION: "v3.12.2"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
Expand All @@ -33,7 +39,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ~1.22.6
go-version: ${{ env.GO_VERSION }}
- name: Cache Go
id: go-cache
uses: actions/cache@v4
Expand Down Expand Up @@ -82,7 +88,7 @@ jobs:
run: cat changelog_preview.md

- name: Install markdown-link-check
run: npm install -g markdown-link-check@3.12.2
run: npm install -g markdown-link-check@${{ env.MARKDOWN_LINK_CHECK_VERSION }}

- name: Run markdown-link-check
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches: [main]
workflow_dispatch:

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"

jobs:
build:
name: Build and Test
Expand All @@ -20,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ defaults:
shell: bash
env:
KUBECONFIG: /tmp/kube-config-collector-e2e-testing
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"

jobs:
docker-build:
Expand All @@ -22,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down Expand Up @@ -98,7 +100,7 @@ jobs:
- zipkin
- statsd
- redaction
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: docker-build
steps:
- name: Check out code
Expand Down Expand Up @@ -147,7 +149,7 @@ jobs:
./internal/testbed/scripts/install_dt_collector_helm.sh || exit 1;
eec-confmap-provider:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: docker-build
steps:
- name: Check out code
Expand All @@ -156,7 +158,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- "**/README.md"
workflow_dispatch:

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"

jobs:
setup-environment:
timeout-minutes: 30
Expand All @@ -19,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down Expand Up @@ -66,7 +70,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tags:
- 'v*'

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"

jobs:
build:
name: Release
Expand All @@ -28,7 +32,7 @@ jobs:
grep "version: ${VERSION}" manifest.yaml || (echo "value of 'dist.version' in manifest.yaml does not match tag version ${VERSION}, please update it" && exit 1)
- uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
branches: [main]

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.6"

jobs:
build:
name: Build
Expand All @@ -16,7 +20,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
go-version: ${{ env.GO_VERSION }}
cache: false

- uses: docker/setup-qemu-action@v3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SOURCES := $(shell find internal/confmap -type f | sort )
BIN = $(BIN_DIR)/dynatrace-otel-collector
MAIN = $(BUILD_DIR)/main.go

# renovate: datasource=github-releases depName=github.com/jstemmer/go-junit-report
# renovate: datasource=github-releases depName=jstemmer/go-junit-report
GO_JUNIT_REPORT_VERSION?=v2.1.0

# Files to be copied directly from the project root
Expand Down
32 changes: 31 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,43 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended",
"schedule:nonOfficeHours",
"customManagers:githubActionsVersions",
"customManagers:makefileVersions"
],
"labels": ["dependencies"],
"prConcurrentLimit": 25,
"minimumReleaseAge": "3 days",
"timezone": "Europe/Vienna",
"rebaseWhen": "conflicted",
"postUpdateOptions": [
"gomodTidy",
"gomodMassage"
],
"packageRules": [
{
"matchPackagePatterns": ["^(go\\.opentelemetry\\.io/collector|github\\.com/open-telemetry/opentelemetry-collector-contrib)"],
"groupName": "OpenTelemetry Collector"
},
{
"matchDatasources": ["golang-version"],
"rangeStrategy": "bump"
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"(^|\\/)Makefile$",
"(^|\\/)Dockerfile",
"(^|\\/).*\\.ya?ml$",
"(^|\\/).*\\.toml$",
"(^|\\/).*\\.sh$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)\\s.*(:|=|\\?=|:=|\\+=) ?\\\"?(?<currentValue>.+?)?\\\"?\\s"
]
}
],
"regexManagers": [
Expand Down

0 comments on commit 0c2e65b

Please sign in to comment.