@@ -341,11 +341,6 @@ jobs:
341
341
- staging-release-version-check
342
342
permissions :
343
343
contents : read
344
- outputs :
345
- windows-exe32-hash : ${{ steps.windows.outputs.WIN_32_EXE_HASH }}
346
- windows-zip32-hash : ${{ steps.windows.outputs.WIN_32_ZIP_HASH }}
347
- windows-exe64-hash : ${{ steps.windows.outputs.WIN_64_EXE_HASH }}
348
- windows-zip64-hash : ${{ steps.windows.outputs.WIN_64_ZIP_HASH }}
349
344
steps :
350
345
- name : Checkout code
351
346
uses : actions/checkout@v4
@@ -392,25 +387,6 @@ jobs:
392
387
AWS_REGION : " us-east-1"
393
388
shell : bash
394
389
395
- - name : Provide output for documentation PR
396
- id : windows
397
- # do not fail the build for this
398
- continue-on-error : true
399
- run : |
400
- ls -l $BASE_DIR/
401
- export WIN_32_EXE_HASH=$(cat "$BASE_DIR/fluent-bit-${{ inputs.version }}-win32.exe.sha256"|awk '{print $1}')
402
- export WIN_32_ZIP_HASH=$(cat "$BASE_DIR/fluent-bit-${{ inputs.version }}-win32.zip.sha256"|awk '{print $1}')
403
- export WIN_64_EXE_HASH=$(cat "$BASE_DIR/fluent-bit-${{ inputs.version }}-win64.exe.sha256"|awk '{print $1}')
404
- export WIN_64_ZIP_HASH=$(cat "$BASE_DIR/fluent-bit-${{ inputs.version }}-win64.zip.sha256"|awk '{print $1}')
405
- set | grep WIN_
406
- echo WIN_32_EXE_HASH="$WIN_32_EXE_HASH" >> $GITHUB_OUTPUT
407
- echo WIN_32_ZIP_HASH="$WIN_32_ZIP_HASH" >> $GITHUB_OUTPUT
408
- echo WIN_64_EXE_HASH="$WIN_64_EXE_HASH" >> $GITHUB_OUTPUT
409
- echo WIN_64_ZIP_HASH="$WIN_64_ZIP_HASH" >> $GITHUB_OUTPUT
410
- shell : bash
411
- env :
412
- BASE_DIR : release/${{ needs.staging-release-version-check.outputs.major-version }}
413
-
414
390
# Simple skopeo copy jobs to transfer image from staging to release registry with optional GPG key signing.
415
391
# Unfortunately skopeo currently does not support Cosign: https://github.com/containers/skopeo/issues/1533
416
392
staging-release-images :
@@ -839,11 +815,61 @@ jobs:
839
815
name : " Fluent Bit ${{ inputs.version }}"
840
816
tag_name : v${{ inputs.version }}
841
817
818
+ staging-release-windows-checksums :
819
+ name : Get Windows checksums for new release
820
+ runs-on : ubuntu-22.04
821
+ environment : release
822
+ needs :
823
+ - staging-release-update-non-linux-s3
824
+ permissions :
825
+ contents : none
826
+ outputs :
827
+ windows-exe32-hash : ${{ steps.hashes.outputs.WIN_32_EXE_HASH }}
828
+ windows-zip32-hash : ${{ steps.hashes.outputs.WIN_32_ZIP_HASH }}
829
+ windows-exe64-hash : ${{ steps.hashes.outputs.WIN_64_EXE_HASH }}
830
+ windows-zip64-hash : ${{ steps.hashes.outputs.WIN_64_ZIP_HASH }}
831
+ windows-arm-exe64-hash : ${{ steps.hashes.outputs.WIN_64_ARM_EXE_HASH }}
832
+ windows-arm-zip64-hash : ${{ steps.hashes.outputs.WIN_64_ARM_ZIP_HASH }}
833
+ steps :
834
+ - name : Sync release Windows directory to get checksums
835
+ run :
836
+ aws s3 sync "s3://${{ secrets.AWS_S3_BUCKET_RELEASE }}/windows" ./ --exclude "*" --include "*.sha256"
837
+ shell : bash
838
+ env :
839
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
840
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
841
+ AWS_REGION : " us-east-1"
842
+
843
+ - name : Provide output for documentation PR
844
+ id : hashes
845
+ # do not fail the build for this
846
+ continue-on-error : true
847
+ run : |
848
+ ls -l
849
+ export WIN_32_EXE_HASH=$(cat "./fluent-bit-${{ inputs.version }}-win32.exe.sha256"|awk '{print $1}')
850
+ export WIN_32_ZIP_HASH=$(cat "./fluent-bit-${{ inputs.version }}-win32.zip.sha256"|awk '{print $1}')
851
+ export WIN_64_EXE_HASH=$(cat "./fluent-bit-${{ inputs.version }}-win64.exe.sha256"|awk '{print $1}')
852
+ export WIN_64_ZIP_HASH=$(cat "./fluent-bit-${{ inputs.version }}-win64.zip.sha256"|awk '{print $1}')
853
+ if [[ -f "./fluent-bit-${{ inputs.version }}-winarm64.exe.sha256" ]]; then
854
+ export WIN_64_ARM_EXE_HASH=$(cat "./fluent-bit-${{ inputs.version }}-winarm64.exe.sha256"|awk '{print $1}')
855
+ fi
856
+ if [[ -f "./fluent-bit-${{ inputs.version }}-winarm64.zip.sha256" ]]; then
857
+ export WIN_64_ARM_ZIP_HASH=$(cat "./fluent-bit-${{ inputs.version }}-winarm64.zip.sha256"|awk '{print $1}')
858
+ fi
859
+ set | grep WIN_
860
+ echo WIN_32_EXE_HASH="$WIN_32_EXE_HASH" >> $GITHUB_OUTPUT
861
+ echo WIN_32_ZIP_HASH="$WIN_32_ZIP_HASH" >> $GITHUB_OUTPUT
862
+ echo WIN_64_EXE_HASH="$WIN_64_EXE_HASH" >> $GITHUB_OUTPUT
863
+ echo WIN_64_ZIP_HASH="$WIN_64_ZIP_HASH" >> $GITHUB_OUTPUT
864
+ echo WIN_64_ARM_EXE_HASH="$WIN_64_ARM_EXE_HASH" >> $GITHUB_OUTPUT
865
+ echo WIN_64_ARM_ZIP_HASH="$WIN_64_ARM_ZIP_HASH" >> $GITHUB_OUTPUT
866
+ shell : bash
867
+
842
868
staging-release-create-docs-pr :
843
869
name : Create docs updates for new release
844
870
needs :
845
871
- staging-release-images
846
- - staging-release-source-s3
872
+ - staging-release-windows-checksums
847
873
permissions :
848
874
contents : none
849
875
environment : release
@@ -886,10 +912,12 @@ jobs:
886
912
shell : bash
887
913
env :
888
914
NEW_VERSION : ${{ inputs.version }}
889
- WIN_32_EXE_HASH : ${{ needs.staging-release-source-s3.outputs.windows-exe32-hash }}
890
- WIN_32_ZIP_HASH : ${{ needs.staging-release-source-s3.outputs.windows-zip32-hash }}
891
- WIN_64_EXE_HASH : ${{ needs.staging-release-source-s3.outputs.windows-exe64-hash }}
892
- WIN_64_ZIP_HASH : ${{ needs.staging-release-source-s3.outputs.windows-zip64-hash }}
915
+ WIN_32_EXE_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-exe32-hash }}
916
+ WIN_32_ZIP_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-zip32-hash }}
917
+ WIN_64_EXE_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-exe64-hash }}
918
+ WIN_64_ZIP_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-zip64-hash }}
919
+ WIN_64_ARM_EXE_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-arm-exe64-hash }}
920
+ WIN_64_ARM_ZIP_HASH : ${{ needs.staging-release-windows-checksums.outputs.windows-arm-zip64-hash }}
893
921
894
922
- name : Raise docs PR
895
923
id : cpr
0 commit comments