File tree 14 files changed +71
-150
lines changed
14 files changed +71
-150
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ inputs:
41
41
runs :
42
42
using : " composite"
43
43
steps :
44
- - name : Checkout
45
- uses : actions/checkout@v3
44
+ - uses : actions/checkout@v3.3.0
46
45
47
46
# ####################
48
47
# Login to DockerHub
56
55
# ####################
57
56
# Build JAR file
58
57
# ####################
59
- - name : Set up JDK 11
60
- uses : actions/setup-java@v3.11.0
61
- with :
62
- java-version : ' 17'
63
- distribution : ' temurin'
64
- cache : ' gradle'
58
+ - uses : ./.github/actions/setup-java
65
59
- name : Build Controlplane
66
60
shell : bash
67
61
run : |-
Original file line number Diff line number Diff line change @@ -42,21 +42,15 @@ inputs:
42
42
runs :
43
43
using : " composite"
44
44
steps :
45
- - name : Checkout
46
- uses : actions/checkout@v3.3.0
45
+ - uses : actions/checkout@v3.3.0
47
46
48
47
- name : Cache ContainerD Image Layers
49
48
uses : actions/cache@v3
50
49
with :
51
50
path : /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs
52
51
key : ${{ runner.os }}-io.containerd.snapshotter.v1.overlayfs
53
52
54
- - name : Set up JDK 11
55
- uses : actions/setup-java@v3.11.0
56
- with :
57
- java-version : ' 11'
58
- distribution : ' temurin'
59
- cache : ' gradle'
53
+ - uses : ./.github/actions/setup-java
60
54
61
55
- name : Build docker images
62
56
shell : bash
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3
+ # Copyright (c) 2023 Contributors to the Eclipse Foundation
4
+ #
5
+ # See the NOTICE file(s) distributed with this work for additional
6
+ # information regarding copyright ownership.
7
+ #
8
+ # This program and the accompanying materials are made available under the
9
+ # terms of the Apache License, Version 2.0 which is available at
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
+ # License for the specific language governing permissions and limitations
16
+ # under the License.
17
+ #
18
+ # SPDX-License-Identifier: Apache-2.0
19
+ #
20
+
21
+ ---
22
+ name : " Setup JDK 17"
23
+ description : " Setup JDK 17"
24
+ runs :
25
+ using : " composite"
26
+ steps :
27
+ - name : Setup JDK 17
28
+ uses : actions/setup-java@v3.11.0
29
+ with :
30
+ java-version : ' 17'
31
+ distribution : ' temurin'
32
+ cache : ' gradle'
Original file line number Diff line number Diff line change 71
71
needs : [ secret-presence ]
72
72
steps :
73
73
# Set-Up
74
- - name : Checkout
75
- uses : actions/checkout@v3.3.0
76
- - name : Set up JDK 11
77
- uses : actions/setup-java@v3.11.0
78
- with :
79
- java-version : ' 17'
80
- distribution : ' temurin'
81
- cache : ' gradle'
74
+ - uses : actions/checkout@v3.3.0
75
+ - uses : ./.github/actions/setup-java
82
76
# Build
83
77
- name : Build Extensions
84
78
run : |-
104
98
permissions :
105
99
contents : write
106
100
steps :
107
- - name : Checkout
108
- uses : actions/checkout@v3
101
+ - uses : actions/checkout@v3.3.0
109
102
- uses : ./.github/actions/publish-docker-image
110
103
with :
111
104
rootDir : edc-controlplane/${{ matrix.name }}
@@ -128,8 +121,7 @@ jobs:
128
121
permissions :
129
122
contents : write
130
123
steps :
131
- - name : Checkout
132
- uses : actions/checkout@v3
124
+ - uses : actions/checkout@v3.3.0
133
125
- uses : ./.github/actions/publish-docker-image
134
126
with :
135
127
rootDir : edc-dataplane/${{ matrix.name }}
@@ -149,15 +141,9 @@ jobs:
149
141
needs.secret-presence.outputs.GPG_PASSPHRASE && needs.secret-presence.outputs.GPG_PRIVATE_KEY && github.event_name != 'pull_request' && github.ref != 'refs/heads/releases'
150
142
steps :
151
143
# Set-Up
152
- - name : Checkout
153
- uses : actions/checkout@v3.3.0
144
+ - uses : actions/checkout@v3.3.0
154
145
155
- - name : Set up JDK 11
156
- uses : actions/setup-java@v3.11.0
157
- with :
158
- java-version : ' 17'
159
- distribution : ' temurin'
160
- cache : ' gradle'
146
+ - uses : ./.github/actions/setup-java
161
147
- name : Import GPG Key
162
148
uses : crazy-max/ghaction-import-gpg@v5
163
149
with :
Original file line number Diff line number Diff line change 50
50
# ## Set-Up ###
51
51
# #############
52
52
-
53
- name : Checkout
54
53
uses : actions/checkout@v3.3.0
55
54
-
56
- name : Set-Up JDK 11
57
- uses : actions/setup-java@v3.11.0
58
- with :
59
- java-version : ' 17'
60
- distribution : ' temurin'
61
- cache : ' gradle'
55
+ uses : ./.github/actions/setup-java
62
56
-
63
57
name : Cache ContainerD Image Layers
64
58
uses : actions/cache@v3
Original file line number Diff line number Diff line change 47
47
deployment-test-memory :
48
48
runs-on : ubuntu-latest
49
49
steps :
50
- - name : Checkout
51
- uses : actions/checkout@v3.3.0
50
+ - uses : actions/checkout@v3.3.0
52
51
- uses : ./.github/actions/run-deployment-test
53
52
name : " Run deployment test using KinD and Helm"
54
53
with :
Original file line number Diff line number Diff line change 33
33
git config user.name "GitHub actions"
34
34
git config user.email noreply@github.com
35
35
-
36
- name : Set up JDK 11
37
- uses : actions/setup-java@v3.11.0
38
- with :
39
- java-version : ' 17'
40
- distribution : ' temurin'
41
- cache : ' gradle'
36
+ uses : ./.github/actions/setup-java
42
37
-
43
38
name : Bump version in gradle.properties
44
39
run : |-
Original file line number Diff line number Diff line change 38
38
39
39
steps :
40
40
# fetch-depth: 0 is required to determine differences in chart(s)
41
- - name : Checkout
42
- uses : actions/checkout@v3
41
+ - uses : actions/checkout@v3.3.0
43
42
with :
44
43
fetch-depth : 0
45
44
Original file line number Diff line number Diff line change 26
26
# ## Set-Up ###
27
27
# #############
28
28
-
29
- name : Checkout
30
29
uses : actions/checkout@v3.3.0
31
30
with :
32
31
fetch-depth : 0
Original file line number Diff line number Diff line change 50
50
contents : write
51
51
packages : write
52
52
steps :
53
- - name : Checkout
54
- uses : actions/checkout@v3
53
+ - uses : actions/checkout@v3.3.0
55
54
- uses : ./.github/actions/publish-docker-image
56
55
with :
57
56
rootDir : edc-controlplane/${{ matrix.name }}
74
73
contents : write
75
74
packages : write
76
75
steps :
77
- - name : Checkout
78
- uses : actions/checkout@v3
76
+ - uses : actions/checkout@v3.3.0
79
77
- uses : ./.github/actions/publish-docker-image
80
78
with :
81
79
rootDir : edc-dataplane/${{ matrix.name }}
Original file line number Diff line number Diff line change 54
54
run : |
55
55
echo "RELEASE_VERSION=${{ needs.release-version.outputs.RELEASE_VERSION }}" >> $GITHUB_ENV
56
56
-
57
- name : Checkout
58
57
uses : actions/checkout@v3.3.0
59
58
-
60
- name : Set up JDK 11
61
- uses : actions/setup-java@v3.11.0
62
- with :
63
- java-version : ' 17'
64
- distribution : ' temurin'
65
- cache : ' gradle'
59
+ uses : ./.github/actions/setup-java
66
60
67
61
- name : Import GPG Key
68
62
uses : crazy-max/ghaction-import-gpg@v5
96
90
run : |
97
91
echo "RELEASE_VERSION=${{ needs.release-version.outputs.RELEASE_VERSION }}" >> $GITHUB_ENV
98
92
-
99
- name : Checkout
100
93
uses : actions/checkout@v3.3.0
101
94
with :
102
95
fetch-depth : 0
@@ -144,7 +137,6 @@ jobs:
144
137
run : |
145
138
echo "RELEASE_VERSION=${{ needs.release-version.outputs.RELEASE_VERSION }}" >> $GITHUB_ENV
146
139
-
147
- name : Checkout
148
140
uses : actions/checkout@v3.3.0
149
141
with :
150
142
# 0 to fetch the full history due to upcoming merge of releases into main branch
@@ -177,12 +169,7 @@ jobs:
177
169
draft : false
178
170
prerelease : false
179
171
-
180
- name : Set up JDK 11
181
- uses : actions/setup-java@v3.11.0
182
- with :
183
- java-version : ' 17'
184
- distribution : ' temurin'
185
- cache : ' gradle'
172
+ uses : ./.github/actions/setup-java
186
173
-
187
174
name : Merge releases back into main and set new snapshot version
188
175
if : github.event.pull_request.base.ref == 'releases'
Original file line number Diff line number Diff line change 36
36
contents : read
37
37
security-events : write
38
38
steps :
39
- - name : Checkout repository
40
- uses : actions/checkout@v3.3.0
39
+ - uses : actions/checkout@v3.3.0
41
40
- name : Run Trivy vulnerability scanner in repo mode
42
41
uses : aquasecurity/trivy-action@master
43
42
with :
72
71
- edc-dataplane-azure-vault
73
72
- edc-dataplane-hashicorp-vault
74
73
steps :
75
- - name : Checkout
76
- uses : actions/checkout@v3.3.0
74
+ - uses : actions/checkout@v3.3.0
77
75
78
76
# # This step will fail if the docker images is not found
79
77
- name : " Check if image exists"
Original file line number Diff line number Diff line change @@ -23,16 +23,10 @@ jobs:
23
23
verify-formatting :
24
24
runs-on : ubuntu-latest
25
25
steps :
26
- - name : Checkout
27
- uses : actions/checkout@v3.3.0
26
+ - uses : actions/checkout@v3.3.0
28
27
with :
29
28
fetch-depth : 0
30
- - name : Set up JDK 11
31
- uses : actions/setup-java@v3.11.0
32
- with :
33
- java-version : ' 17'
34
- distribution : ' temurin'
35
- cache : ' gradle'
29
+ - uses : ./.github/actions/setup-java
36
30
- name : Verify proper formatting
37
31
run : ./gradlew spotlessCheck
38
32
51
45
- edc-controlplane-postgresql-hashicorp-vault
52
46
steps :
53
47
# Set-Up
54
- - name : Checkout
55
- uses : actions/checkout@v3.3.0
56
- - name : Set up JDK 11
57
- uses : actions/setup-java@v3.11.0
58
- with :
59
- java-version : ' 17'
60
- distribution : ' temurin'
61
- cache : ' gradle'
48
+ - uses : actions/checkout@v3.3.0
49
+ - uses : ./.github/actions/setup-java
62
50
# Build
63
51
- name : Build Controlplane
64
52
run : |-
95
83
- edc-dataplane-hashicorp-vault
96
84
steps :
97
85
# Set-Up
98
- - name : Checkout
99
- uses : actions/checkout@v3.3.0
100
- - name : Set up JDK 11
101
- uses : actions/setup-java@v3.11.0
102
- with :
103
- java-version : ' 17'
104
- distribution : ' temurin'
105
- cache : ' gradle'
86
+ - uses : actions/checkout@v3.3.0
87
+ - uses : ./.github/actions/setup-java
106
88
# Build
107
89
- name : Build Dataplane
108
90
run : |-
You can’t perform that action at this time.
0 commit comments