Repository navigation
workflows: ensure 5.0 releases are handled #11631
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -536,8 +536,8 @@ jobs: | |
| TAG: ${{ steps.get-tag.outputs.tag }} | ||
|
|
||
| staging-release-images-latest-tags: | ||
| # Only update latest tags for 4.0 releases | ||
| if: startsWith(github.event.inputs.version, '4.') | ||
| # Only update latest tags for 5.0 releases | ||
| if: startsWith(github.event.inputs.version, '5.') | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| name: Release latest Linux container images | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
|
|
@@ -887,17 +887,28 @@ jobs: | |
| tag_name: v${{ inputs.version }} | ||
| make_latest: false | ||
|
|
||
| - name: Release 4.2 and latest | ||
| - name: Release 4.2 - not latest | ||
| uses: softprops/action-gh-release@v2 | ||
| if: startsWith(inputs.version, '4.2') | ||
| 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: false | ||
|
Comment on lines
+892
to
+902
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: If you create a release with
Sources: Add When Patch - name: Release 4.2 - not latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '4.2')
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 }}
+ target_commitish: '4.2'
make_latest: false🤖 Prompt for AI Agents |
||
|
|
||
| - name: Release 5.0 and latest | ||
| uses: softprops/action-gh-release@v2 | ||
| if: startsWith(inputs.version, '5.0') | ||
| 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 | ||
|
|
@@ -1020,13 +1031,22 @@ jobs: | |
| with: | ||
| repository: fluent/fluent-bit-docs | ||
| token: ${{ secrets.GH_PA_TOKEN }} | ||
| ref: '4.1' | ||
|
|
||
| - name: Release 4.2 and latest | ||
| - name: Release 4.2 - not latest | ||
| if: startsWith(inputs.version, '4.2') | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| repository: fluent/fluent-bit-docs | ||
| token: ${{ secrets.GH_PA_TOKEN }} | ||
| ref: '4.2' | ||
|
|
||
| - name: Release 5.0 and latest | ||
| if: startsWith(inputs.version, '5.0') | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| repository: fluent/fluent-bit-docs | ||
| token: ${{ secrets.GH_PA_TOKEN }} | ||
|
|
||
| - name: Ensure we have the script we need | ||
| run: | | ||
|
|
@@ -1135,8 +1155,14 @@ jobs: | |
| if: startsWith(inputs.version, '4.2') | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: master | ||
| ref: 4.2 | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Release 5.0 | ||
| if: startsWith(inputs.version, '5.0') | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: master | ||
|
|
||
| # Get the new version to use | ||
| - name: 'Get next minor version' | ||
| id: semvers | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
staging-release-images-latest-tagsjob now runs for any5.xversion (startsWith(..., '5.')), but the release job still marks GitHub releases as latest only for5.0(startsWith(inputs.version, '5.0')). This mismatch means a5.1(or later) run will still overwrite Dockerlatesttags even though the workflow does not treat that version as the designated latest release path elsewhere, which can publish unintended images underlatest.Useful? React with 👍 / 👎.