@@ -3,6 +3,14 @@ name: • 🛫 Release
3
3
on :
4
4
workflow_dispatch :
5
5
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
+
6
14
jobs :
7
15
get-available-images-matrix :
8
16
uses : ./.github/workflows/__shared-get-available-images-matrix.yml
48
56
49
57
- id : release
50
58
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
52
60
env :
53
61
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
62
with :
@@ -59,36 +67,46 @@ jobs:
59
67
if : steps.should-build-image.outputs.should-build-image == 'true' && steps.release.outputs.tag_name != ''
60
68
run : |
61
69
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"
63
72
echo "images<<EOF" >> "$GITHUB_OUTPUT" && echo "$BUILD_IMAGES" >> "$GITHUB_OUTPUT" && echo "EOF" >> "$GITHUB_OUTPUT"
64
73
65
74
# FIXME: Set built images infos in file to be uploaded as artifacts, because github action does not handle job outputs for matrix
66
75
# https://github.com/orgs/community/discussions/26639
67
76
- 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
69
78
with :
70
79
value : ${{ steps.set-images-to-build.outputs.images }}
71
80
artifact-name : images-to-build
72
81
73
82
# FIXME: Download matrix ouputs from artifacts, because github action does not handle job outputs for matrix
74
83
# https://github.com/orgs/community/discussions/26639
84
+ # jscpd:ignore-start
75
85
get-images-to-build :
76
86
needs : prepare-images-to-build
77
87
runs-on : " ubuntu-latest"
78
88
outputs :
79
89
images : ${{ steps.get-matrix-outputs.outputs.result }}
80
90
steps :
81
91
- 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
83
93
with :
84
94
artifact-name : " images-to-build"
85
95
86
96
build-images :
87
97
needs : get-images-to-build
88
98
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
89
106
uses :
hoverkraft-tech/ci-github-container/.github/workflows/[email protected]
90
107
with :
91
108
oci-registry : ${{ vars.OCI_REGISTRY }}
92
109
images : ${{ needs.get-images-to-build.outputs.images }}
93
110
secrets :
94
111
oci-registry-password : ${{ secrets.GITHUB_TOKEN }}
112
+ # jscpd:ignore-end
0 commit comments