Skip to content

workflows: prepare 4.1 release #10611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
26 changes: 23 additions & 3 deletions .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ jobs:
TAG: ${{ steps.get-tag.outputs.tag }}

staging-release-images-latest-tags:
# Only update latest tags for 4.0 releases
# NOTE: Before releasing 4.1, we need to change '4.' to '4.1'
# Meanwhile, we need to release 4.0 series as stable releases.
# Only update latest tags for 4. releases
if: startsWith(github.event.inputs.version, '4.')
name: Release latest Linux container images
runs-on: ubuntu-latest
Expand Down Expand Up @@ -829,7 +831,7 @@ jobs:
target_commitish: '3.2'
make_latest: false

- name: Release 4.0 and latest
- name: Release 4.0 - not latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '4.0')
with:
Expand All @@ -840,6 +842,17 @@ jobs:
tag_name: v${{ inputs.version }}
make_latest: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say we change this now and do not merge PR until it is ready to release. Otherwise we have to change it later.


- name: Release 4.1 and latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '4.1')
with:
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
draft: false
generate_release_notes: true
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
make_latest: true

staging-release-windows-checksums:
name: Get Windows checksums for new release
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -948,13 +961,20 @@ jobs:
token: ${{ secrets.GH_PA_TOKEN }}
ref: 3.2

- name: Release 4.0 and latest
- name: Release 4.0 - not latest
if: startsWith(inputs.version, '4.0')
uses: actions/checkout@v4
with:
repository: fluent/fluent-bit-docs
token: ${{ secrets.GH_PA_TOKEN }}

- name: Release 4.1 and latest
if: startsWith(inputs.version, '4.1')
uses: actions/checkout@v4
with:
repository: fluent/fluent-bit-docs
token: ${{ secrets.GH_PA_TOKEN }}

- name: Ensure we have the script we need
run: |
if [[ ! -f update-release-version-docs.sh ]] ; then
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
- 'examples/**'
branches:
- master
- 4.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the nightly builds cron to pick the right branches?

- 3.2
- 3.1
- 3.0
Expand Down