Skip to content

Commit 2702f4f

Browse files
workflows: update to handle 2.2 releases (#8113)
Signed-off-by: Patrick Stephens <pat@calyptia.com>
1 parent d918e40 commit 2702f4f

5 files changed

+43
-17
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ Enter `[N/A]` in the box, if an item is not applicable to your change.
77

88
**Testing**
99
Before we can approve your change; please submit the following in a comment:
10+
1011
- [ ] Example configuration file for the change
1112
- [ ] Debug log output from testing the change
12-
<!--
13-
Please refer to the Developer Guide for instructions on building Fluent Bit with Valgrind support:
13+
<!--
14+
Please refer to the Developer Guide for instructions on building Fluent Bit with Valgrind support:
1415
https://github.com/fluent/fluent-bit/blob/master/DEVELOPER_GUIDE.md#valgrind
1516
Invoke Fluent Bit and Valgrind as: $ valgrind --leak-check=full ./bin/fluent-bit <args>
1617
-->
1718
- [ ] Attached [Valgrind](https://valgrind.org/docs/manual/quick-start.html) output that shows no leaks or memory corruption was found
1819

1920
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
21+
2022
- [ ] Run [local packaging test](./packaging/local-build-all.sh) showing all targets (including any new ones) build.
2123
- [ ] Set `ok-package-test` label to test for all targets (requires maintainer to do).
2224

.github/workflows/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ Take the checksums from the release process above, the AppVeyor stage provides t
184184
## Unstable/nightly builds
185185

186186
These happen every 24 hours and [reuse the same workflow](./cron-unstable-build.yaml) as the staging build so are identical except they skip the upload to S3 step.
187-
This means all targets are built nightly for `master` and `2.0` branches including container images and Linux, macOS and Windows packages.
187+
This means all targets are built nightly for `master` and `2.1` branches including container images and Linux, macOS and Windows packages.
188188

189189
The container images are available here (the tag refers to the branch):
190190

191-
* [ghcr.io/fluent/fluent-bit/unstable:2.0](ghcr.io/fluent/fluent-bit/unstable:2.0)
191+
* [ghcr.io/fluent/fluent-bit/unstable:2.1](ghcr.io/fluent/fluent-bit/unstable:2.1)
192192
* [ghcr.io/fluent/fluent-bit/unstable:master](ghcr.io/fluent/fluent-bit/unstable:master)
193-
* [ghcr.io/fluent/fluent-bit/unstable:windows-2019-2.0](ghcr.io/fluent/fluent-bit/unstable:windows-2019-2.0)
193+
* [ghcr.io/fluent/fluent-bit/unstable:windows-2019-2.1](ghcr.io/fluent/fluent-bit/unstable:windows-2019-2.1)
194194
* [ghcr.io/fluent/fluent-bit/unstable:windows-2019-master](ghcr.io/fluent/fluent-bit/unstable:windows-2019-master)
195195

196196
The Linux, macOS and Windows packages are available to download from the specific workflow run.

.github/workflows/cron-unstable-build.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
# Run nightly build at this time, bit of trial and error but this seems good.
1414
schedule:
1515
- cron: "0 6 * * *" # master build
16-
- cron: "0 12 * * *" # 2.0 build
16+
- cron: "0 12 * * *" # 2.1 build
1717

1818
# We do not want a new unstable build to run whilst we are releasing the current unstable build.
1919
concurrency: unstable-build-release
@@ -51,10 +51,10 @@ jobs:
5151
echo "cron_branch=master" >> $GITHUB_ENV
5252
shell: bash
5353

54-
- name: 2.0 run
54+
- name: 2.1 run
5555
if: github.event_name == 'schedule' && github.event.schedule=='0 12 * * *'
5656
run: |
57-
echo "cron_branch=2.0" >> $GITHUB_ENV
57+
echo "cron_branch=2.1" >> $GITHUB_ENV
5858
shell: bash
5959

6060
- name: Output the branch to use

.github/workflows/staging-release.yaml

+31-9
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ jobs:
459459
shell: bash
460460

461461
- name: Promote container images from staging to GHCR.io
462-
if: ${{ startsWith(github.event.inputs.version, '2.0') || ! startsWith(matrix.tag, 'latest') }}
462+
if: ${{ startsWith(github.event.inputs.version, '2.0') || startsWith(github.event.inputs.version, '2.1') || ! startsWith(matrix.tag, 'latest') }}
463463
run: |
464464
docker run --rm \
465465
quay.io/skopeo/stable:latest \
@@ -479,9 +479,6 @@ jobs:
479479
# Part of resolution for: https://github.com/fluent/fluent-bit/issues/7748
480480
# More recent build-push-actions may mean legacy format is not preserved so we provide arch-specific tags just in case
481481
staging-release-images-arch-specific-legacy-tags:
482-
# TODO: remove next release once we are happy this all works, for now though do not block a release
483-
continue-on-error: true
484-
#
485482
name: Release ${{ matrix.arch }} legacy format Linux container images
486483
runs-on: ubuntu-latest
487484
needs:
@@ -545,8 +542,8 @@ jobs:
545542
TAG: ${{ steps.get-tag.outputs.tag }}
546543

547544
staging-release-images-latest-tags:
548-
# Only update latest tags for 2.1 releases
549-
if: startsWith(github.event.inputs.version, '2.1')
545+
# Only update latest tags for 2.2 releases
546+
if: startsWith(github.event.inputs.version, '2.2')
550547
name: Release latest Linux container images
551548
runs-on: ubuntu-latest
552549
needs:
@@ -821,7 +818,7 @@ jobs:
821818
tag_name: v${{ inputs.version }}
822819
target_commitish: '2.0'
823820

824-
- name: Release 2.1 and latest
821+
- name: Release 2.1 - not latest
825822
uses: softprops/action-gh-release@v1
826823
if: startsWith(inputs.version, '2.1')
827824
with:
@@ -830,6 +827,17 @@ jobs:
830827
generate_release_notes: true
831828
name: "Fluent Bit ${{ inputs.version }}"
832829
tag_name: v${{ inputs.version }}
830+
target_commitish: '2.1'
831+
832+
- name: Release 2.2 and latest
833+
uses: softprops/action-gh-release@v1
834+
if: startsWith(inputs.version, '2.2')
835+
with:
836+
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
837+
draft: false
838+
generate_release_notes: true
839+
name: "Fluent Bit ${{ inputs.version }}"
840+
tag_name: v${{ inputs.version }}
833841

834842
staging-release-create-docs-pr:
835843
name: Create docs updates for new release
@@ -849,9 +857,17 @@ jobs:
849857
ref: 2.0
850858
token: ${{ secrets.GH_PA_TOKEN }}
851859

852-
- name: Release 2.1 and latest
860+
- name: Release 2.1 - not latest
853861
if: startsWith(inputs.version, '2.1')
854862
uses: actions/checkout@v4
863+
with:
864+
repository: fluent/fluent-bit-docs
865+
ref: 2.1
866+
token: ${{ secrets.GH_PA_TOKEN }}
867+
868+
- name: Release 2.2 and latest
869+
if: startsWith(inputs.version, '2.2')
870+
uses: actions/checkout@v4
855871
with:
856872
repository: fluent/fluent-bit-docs
857873
token: ${{ secrets.GH_PA_TOKEN }}
@@ -914,9 +930,15 @@ jobs:
914930
with:
915931
ref: 2.0
916932

917-
- name: Release 2.1 and latest
933+
- name: Release 2.1
918934
if: startsWith(inputs.version, '2.1')
919935
uses: actions/checkout@v4
936+
with:
937+
ref: 2.1
938+
939+
- name: Release 2.2 and latest
940+
if: startsWith(inputs.version, '2.2')
941+
uses: actions/checkout@v4
920942

921943
# Get the new version to use
922944
- name: 'Get next minor version'

.github/workflows/unit-tests.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- 2.1
67
- 2.0
78
- 1.9
89
- 1.8
@@ -18,6 +19,7 @@ on:
1819
- 'examples/**'
1920
branches:
2021
- master
22+
- 2.1
2123
- 2.0
2224
- 1.9
2325
- 1.8

0 commit comments

Comments
 (0)