Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ updates:
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: ci
include: scope

- package-ecosystem: "docker"
directories:
Comment thread
joshuabaird marked this conversation as resolved.
Expand All @@ -12,6 +15,9 @@ updates:
- "/cmd/fluent-watcher/fluentd"
schedule:
interval: "daily"
commit-message:
prefix: build
include: scope
Comment thread
joshuabaird marked this conversation as resolved.
Comment thread
joshuabaird marked this conversation as resolved.

- package-ecosystem: "docker"
directory: "/docs/best-practice/forwarding-logs-via-http"
Expand All @@ -21,6 +27,9 @@ updates:
- package-ecosystem: "gomod"
directories:
- "/"
commit-message:
prefix: build
include: scope
groups:
k8s.io/*:
patterns:
Expand Down
15 changes: 15 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "build", "section": "Dependencies", "hidden": false },
Comment thread
joshuabaird marked this conversation as resolved.
{ "type": "deps", "section": "Dependencies", "hidden": false },
Comment thread
joshuabaird marked this conversation as resolved.
Comment on lines +10 to +11
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true }
],
"packages": {
".": {
"extra-files": [
Expand Down
3 changes: 2 additions & 1 deletion .github/renovate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = {
dryRun: null,
repositories: ["fluent/fluent-operator"],
enabledManagers: ["custom.regex"],
extends: ["config:recommended"],
// Match Dependabot / release-please: build(deps): update …
extends: ["config:recommended", ":semanticCommitTypeAll(build)"],
customManagers: [
{
customType: "regex",
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/bump-fluent-bit-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,29 @@ jobs:
fi
done

- name: Update version in values.yaml
- name: Update fluent-bit tag in chart values.yaml
run: |
if ! sed -i '/repository: "ghcr.io\/fluent\/fluent-operator\/fluent-bit"/!b;n;s/tag: .*/tag: "${{ github.event.inputs.version }}"/' charts/fluent-operator/values.yaml; then
echo "Failed to update values.yaml"
file="charts/fluent-operator/values.yaml"
# Match fluentbit.image (registry + repository); not the old single-line repository form
if ! sed -i '/depName=ghcr.io\/fluent\/fluent-operator\/fluent-bit/,+1 s|tag: .*|tag: "${{ github.event.inputs.version }}"|' "$file"; then
echo "Failed to update fluent-bit tag in $file"
exit 1
fi
if ! grep -A1 'depName=ghcr.io/fluent/fluent-operator/fluent-bit' "$file" | tail -n1 | grep -q '^ *tag: "${{ github.event.inputs.version }}"$'; then
echo "fluent-bit tag not updated in the depName=ghcr.io/fluent/fluent-operator/fluent-bit block of $file"
exit 1
fi

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: "chore(deps): bump fluent-bit to ${{ github.event.inputs.version }}
commit-message: "build(deps): bump fluent-bit to ${{ github.event.inputs.version }}
Comment thread
joshuabaird marked this conversation as resolved.

- Updated VERSION file
- Updated manifest files
- Updated values.yaml in Helm chart"
signoff: true
title: "chore(deps): bump fluent-bit to ${{ github.event.inputs.version }}"
title: "build(deps): bump fluent-bit to ${{ github.event.inputs.version }}"
body: |
This PR updates the version to ${{ github.event.inputs.version }} in the following files:
- cmd/fluent-watcher/fluentbit/VERSION
Expand Down
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Version bumps are driven automatically by [Conventional Commits](https://www.con
| `feat:` | Minor version bump |
| `fix:` | Patch version bump |
| `feat!:` or `BREAKING CHANGE:` | Major version bump |
| `build:` or `build(deps):` | Patch version bump |
Comment thread
joshuabaird marked this conversation as resolved.
Comment thread
joshuabaird marked this conversation as resolved.
| `chore:`, `docs:`, `ci:`, etc. | No version bump (excluded from changelog) |

## How to cut a new release
Expand Down
Loading