@@ -3,6 +3,14 @@ name: • 🛫 Release
33on :
44 workflow_dispatch :
55
6+ permissions :
7+ contents : write
8+ issues : read
9+ packages : write
10+ pull-requests : read
11+ # FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
12+ id-token : write
13+
614jobs :
715 get-available-images-matrix :
816 uses : ./.github/workflows/__shared-get-available-images-matrix.yml
4856
4957 - id : release
5058 if : steps.should-build-image.outputs.should-build-image == 'true'
51- uses : release-drafter/release-drafter@v5
59+ uses : release-drafter/release-drafter@v6.0.0
5260 env :
5361 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5462 with :
@@ -59,36 +67,46 @@ jobs:
5967 if : steps.should-build-image.outputs.should-build-image == 'true' && steps.release.outputs.tag_name != ''
6068 run : |
6169 BUILD_TAG=$(echo "${{ steps.release.outputs.tag_name }}" | sed -E "s/^${{ matrix.image }}-//")
62- BUILD_IMAGES='{"name":"${{ matrix.image }}","context":"images/${{ matrix.image }}", "dockerfile":"Dockerfile", "tag":"'$BUILD_TAG'", "platforms": ["linux/amd64","linux/arm64","linux/arm/v7"]}'
70+ BUILD_IMAGES='{"name":"${{ matrix.image }}","context":"images/${{ matrix.image }}", "dockerfile":"Dockerfile", "tag":"'$BUILD_TAG'", "platforms": ["linux/amd64","linux/arm64"]}'
71+ echo "BUILD_IMAGES=$BUILD_IMAGES"
6372 echo "images<<EOF" >> "$GITHUB_OUTPUT" && echo "$BUILD_IMAGES" >> "$GITHUB_OUTPUT" && echo "EOF" >> "$GITHUB_OUTPUT"
6473
6574 # FIXME: Set built images infos in file to be uploaded as artifacts, because github action does not handle job outputs for matrix
6675 # https://github.com/orgs/community/discussions/26639
6776 - if : steps.should-build-image.outputs.should-build-image == 'true'
68- uses : hoverkraft-tech/ci-github-common/actions/set-matrix-output@0.4.3
77+ uses : hoverkraft-tech/ci-github-common/actions/set-matrix-output@0.16.0
6978 with :
7079 value : ${{ steps.set-images-to-build.outputs.images }}
7180 artifact-name : images-to-build
7281
7382 # FIXME: Download matrix ouputs from artifacts, because github action does not handle job outputs for matrix
7483 # https://github.com/orgs/community/discussions/26639
84+ # jscpd:ignore-start
7585 get-images-to-build :
7686 needs : prepare-images-to-build
7787 runs-on : " ubuntu-latest"
7888 outputs :
7989 images : ${{ steps.get-matrix-outputs.outputs.result }}
8090 steps :
8191 - id : get-matrix-outputs
82- uses : hoverkraft-tech/ci-github-common/actions/get-matrix-outputs@0.4.3
92+ uses : hoverkraft-tech/ci-github-common/actions/get-matrix-outputs@0.16.0
8393 with :
8494 artifact-name : " images-to-build"
8595
8696 build-images :
8797 needs : get-images-to-build
8898 if : needs.get-images-to-build.outputs.images != '[]'
99+ # FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
100+ permissions :
101+ id-token : write
102+ contents : read
103+ packages : write
104+ issues : read
105+ pull-requests : read
89106 uses : hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@0.19.0
90107 with :
91108 oci-registry : ${{ vars.OCI_REGISTRY }}
92109 images : ${{ needs.get-images-to-build.outputs.images }}
93110 secrets :
94111 oci-registry-password : ${{ secrets.GITHUB_TOKEN }}
112+ # jscpd:ignore-end
0 commit comments