Skip to content

Commit e9f3622

Browse files
committed
build-fb-image: Trigger a release whenever the VERSION file changes
This would happen after a PR gets merged to main that modifies the cmd/fluent-watcher/fluentbit/VERSION file Signed-off-by: Marco Franssen <[email protected]>
1 parent e28654e commit e9f3622

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build-fb-image.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Building Fluent Bit image
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- cmd/fluent-watcher/fluentbit/VERSION
49
workflow_dispatch:
510

611
env:

RELEASE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ Fluent Operator uses [custom builds](./cmd/fluent-watcher/README.md) of both Flu
138138
To publish a new fluent-bit image:
139139

140140
* Execute the [bump-fluent-bit-version](https://github.com/fluent/fluent-operator/actions/workflows/bump-fluent-bit-version.yaml) workflow dispatch to generate a PR to update fluent-bit version references in this repo
141-
* Merge the PR generated by the [bump-fluent-bit-version](https://github.com/fluent/fluent-operator/actions/workflows/bump-fluent-bit-version.yaml) workflow
142-
* Execute the [build-fb-image](https://github.com/fluent/fluent-operator/actions/workflows/build-fb-image.yaml) workflow dispatch to build and publish the new image
141+
* Merge the PR generated by the [bump-fluent-bit-version](https://github.com/fluent/fluent-operator/actions/workflows/bump-fluent-bit-version.yaml) workflow. (This will [automatically trigger the release](https://github.com/fluent/fluent-operator/blob/master/.github/workflows/build-fb-image.yaml#L4-L8) of the new fluent-bit image)
143142

144143
## Fluentd
145144

0 commit comments

Comments
 (0)