Skip to content

Commit

Permalink
workflows: update for 3.1 release
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
  • Loading branch information
edsiper committed Jun 25, 2024
1 parent fe988b1 commit 99f13d4
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ jobs:
TAG: ${{ steps.get-tag.outputs.tag }}

staging-release-images-latest-tags:
# Only update latest tags for 3.0 releases
if: startsWith(github.event.inputs.version, '3.0')
# Only update latest tags for 3.1 releases
if: startsWith(github.event.inputs.version, '3.1')
name: Release latest Linux container images
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -791,21 +791,21 @@ jobs:
target_commitish: '2.1'
make_latest: false

- name: Release 2.2 - not latest
- name: Release 3.0 - not latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '2.2')
if: startsWith(inputs.version, '3.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 }}
target_commitish: '2.2'
target_commitish: '3.0'
make_latest: false

- name: Release 3.0 and latest
- name: Release 3.1 and latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '3.0')
if: startsWith(inputs.version, '3.1')
with:
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
draft: false
Expand Down Expand Up @@ -898,13 +898,20 @@ jobs:
ref: 2.2
token: ${{ secrets.GH_PA_TOKEN }}

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

- name: Release 3.1 and latest
if: startsWith(inputs.version, '3.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 Expand Up @@ -977,9 +984,15 @@ jobs:
with:
ref: 2.2

- name: Release 3.0 and latest
- name: Release 3.0 not latest
if: startsWith(inputs.version, '3.0')
uses: actions/checkout@v4
with:
ref: 3.0

- name: Release 3.1 latest
if: startsWith(inputs.version, '3.1')
uses: actions/checkout@v4

# Get the new version to use
- name: 'Get next minor version'
Expand Down

0 comments on commit 99f13d4

Please sign in to comment.