@@ -419,7 +419,7 @@ jobs:
419419 shell : bash
420420
421421 - name : Promote container images from staging to GHCR.io
422- if : ${{ startsWith(github.event.inputs.version, '2.') || startsWith(github.event.inputs.version, '3.') || ! startsWith(matrix.tag, 'latest') }}
422+ if : ${{ ! startsWith(matrix.tag, 'latest') }}
423423 run : |
424424 docker run --rm \
425425 quay.io/skopeo/stable:latest \
@@ -502,8 +502,8 @@ jobs:
502502 TAG : ${{ steps.get-tag.outputs.tag }}
503503
504504 staging-release-images-latest-tags :
505- # Only update latest tags for 3.2 releases
506- if : startsWith(github.event.inputs.version, '3.2 ')
505+ # Only update latest tags for 4.0 releases
506+ if : startsWith(github.event.inputs.version, '4. ')
507507 name : Release latest Linux container images
508508 runs-on : ubuntu-latest
509509 needs :
@@ -815,9 +815,21 @@ jobs:
815815 target_commitish : ' 3.1'
816816 make_latest : false
817817
818- - name : Release 3.2 and latest
818+ - name : Release 3.2 - not latest
819819 uses : softprops/action-gh-release@v2
820820 if : startsWith(inputs.version, '3.2')
821+ with :
822+ body : " https://fluentbit.io/announcements/v${{ inputs.version }}/"
823+ draft : false
824+ generate_release_notes : true
825+ name : " Fluent Bit ${{ inputs.version }}"
826+ tag_name : v${{ inputs.version }}
827+ target_commitish : ' 3.2'
828+ make_latest : false
829+
830+ - name : Release 4.0 and latest
831+ uses : softprops/action-gh-release@v2
832+ if : startsWith(inputs.version, '4.0')
821833 with :
822834 body : " https://fluentbit.io/announcements/v${{ inputs.version }}/"
823835 draft : false
@@ -926,12 +938,20 @@ jobs:
926938 ref : 3.1
927939 token : ${{ secrets.GH_PA_TOKEN }}
928940
929- - name : Release 3.2 and latest
941+ - name : Release 3.2 - not latest
930942 if : startsWith(inputs.version, '3.2')
931943 uses : actions/checkout@v4
932944 with :
933945 repository : fluent/fluent-bit-docs
934946 token : ${{ secrets.GH_PA_TOKEN }}
947+ ref : 3.2
948+
949+ - name : Release 4.0 and latest
950+ if : startsWith(inputs.version, '4.0')
951+ uses : actions/checkout@v4
952+ with :
953+ repository : fluent/fluent-bit-docs
954+ token : ${{ secrets.GH_PA_TOKEN }}
935955
936956 - name : Ensure we have the script we need
937957 run : |
@@ -976,6 +996,7 @@ jobs:
976996 run : |
977997 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
978998 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
999+ shell : bash
9791000
9801001 staging-release-create-version-update-pr :
9811002 name : Create version update PR for new release
@@ -1064,3 +1085,4 @@ jobs:
10641085 run : |
10651086 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
10661087 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
1088+ shell : bash
0 commit comments