@@ -12,28 +12,28 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - name : ' Checkout'
16
- uses : actions/checkout@v3
15
+ - name : " Checkout"
16
+ uses : actions/checkout@v4
17
17
18
- - name : ' Setup buildx'
18
+ - name : " Setup buildx"
19
19
uses : docker/setup-buildx-action@v2
20
20
with :
21
21
install : true
22
22
23
- - name : ' Docker login'
23
+ - name : " Docker login"
24
24
uses : docker/login-action@v2
25
25
with :
26
26
username : kbstci
27
27
password : ${{ secrets.DOCKER_AUTH }}
28
28
29
- - name : ' Build artifacts'
29
+ - name : " Build artifacts"
30
30
env :
31
31
DOCKER_PUSH : true
32
32
GIT_SHA : ${{ github.sha }}
33
33
GIT_REF : ${{ github.ref }}
34
34
run : make dist
35
35
36
- - name : ' Upload artifacts'
36
+ - name : " Upload artifacts"
37
37
uses : actions/upload-artifact@v3
38
38
with :
39
39
name : test-artifacts
@@ -44,38 +44,38 @@ jobs:
44
44
needs : [build-test-artifacts]
45
45
strategy :
46
46
matrix :
47
- starter : ["multi-cloud", "aks", "eks", "gke" , "kind"]
47
+ starter : ["multi-cloud", "aks", "eks", "gke", "kind"]
48
48
49
49
permissions :
50
50
id-token : write # needed for keyless signing
51
51
52
52
steps :
53
- - name : ' Free disk space'
53
+ - name : " Free disk space"
54
54
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
55
55
run : |
56
56
sudo rm -rf /usr/share/dotnet
57
57
sudo rm -rf /opt/ghc
58
58
sudo rm -rf /usr/local/share/boost
59
59
sudo rm -rf $AGENT_TOOLSDIRECTORY
60
60
61
- - name : ' Checkout'
62
- uses : actions/checkout@v3
61
+ - name : " Checkout"
62
+ uses : actions/checkout@v4
63
63
64
- - name : ' Download test-artifacts'
65
- uses : actions/download-artifact@v3
64
+ - name : " Download test-artifacts"
65
+ uses : actions/download-artifact@v4
66
66
with :
67
67
name : test-artifacts
68
68
path : ./quickstart/_dist
69
69
70
70
- name : Install Cosign
71
71
uses : sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
72
72
73
- - name : ' Setup buildx'
73
+ - name : " Setup buildx"
74
74
uses : docker/setup-buildx-action@v2
75
75
with :
76
76
install : true
77
77
78
- - name : ' Docker login'
78
+ - name : " Docker login"
79
79
uses : docker/login-action@v2
80
80
with :
81
81
username : kbstci
87
87
DOCKER_TARGET : ${{ matrix.starter }}
88
88
run : make build
89
89
90
- - name : ' Sign Images'
90
+ - name : " Sign Images"
91
91
env :
92
92
COSIGN_EXPERIMENTAL : true
93
93
run : |
@@ -99,26 +99,26 @@ jobs:
99
99
strategy :
100
100
fail-fast : false
101
101
matrix :
102
- starter : ["multi-cloud", "aks", "eks", "gke" , "kind"]
102
+ starter : ["multi-cloud", "aks", "eks", "gke", "kind"]
103
103
104
104
steps :
105
- - name : ' Download test-artifacts'
106
- uses : actions/download-artifact@v3
105
+ - name : " Download test-artifacts"
106
+ uses : actions/download-artifact@v4
107
107
with :
108
108
name : test-artifacts
109
109
path : ./quickstart/_dist
110
110
111
- - name : ' Unzip ${{ matrix.starter }} quickstart'
111
+ - name : " Unzip ${{ matrix.starter }} quickstart"
112
112
run : |
113
113
unzip quickstart/_dist/kubestack-starter-${{ matrix.starter }}-*.zip
114
114
115
- - name : ' Docker login'
115
+ - name : " Docker login"
116
116
uses : docker/login-action@v2
117
117
with :
118
118
username : kbstci
119
119
password : ${{ secrets.DOCKER_AUTH }}
120
120
121
- - name : ' Docker build'
121
+ - name : " Docker build"
122
122
env :
123
123
DOCKER_BUILDKIT : 1
124
124
working-directory : ./kubestack-starter-${{ matrix.starter }}
@@ -132,7 +132,7 @@ jobs:
132
132
docker tag $SOURCE_IMAGE $TARGET_IMAGE
133
133
docker build -t test-image:${{ github.sha }} .
134
134
135
- - name : ' Configure Kubestack for ${{ matrix.starter }}'
135
+ - name : " Configure Kubestack for ${{ matrix.starter }}"
136
136
working-directory : ./kubestack-starter-${{ matrix.starter }}
137
137
run : |
138
138
# ALL: set name_prefix
@@ -159,31 +159,31 @@ jobs:
159
159
# GKE: set cluster_node_locations
160
160
sed -i 's/cluster_node_locations = ""/cluster_node_locations = "europe-west1-b,europe-west1-c,europe-west1-d"/g' gke_zero_cluster.tf || true
161
161
162
- - name : ' Terraform init'
162
+ - name : " Terraform init"
163
163
working-directory : ./kubestack-starter-${{ matrix.starter }}
164
164
run : |
165
165
docker run --rm \
166
166
-v `pwd`:/infra \
167
167
test-image:${{ github.sha }} \
168
168
terraform init
169
169
170
- - name : ' Terraform workspace new ops'
170
+ - name : " Terraform workspace new ops"
171
171
working-directory : ./kubestack-starter-${{ matrix.starter }}
172
172
run : |
173
173
docker run --rm \
174
174
-v `pwd`:/infra \
175
175
test-image:${{ github.sha }} \
176
176
terraform workspace new ops
177
177
178
- - name : ' Terraform validate'
178
+ - name : " Terraform validate"
179
179
working-directory : ./kubestack-starter-${{ matrix.starter }}
180
180
run : |
181
181
docker run --rm \
182
182
-v `pwd`:/infra \
183
183
test-image:${{ github.sha }} \
184
184
terraform validate
185
185
186
- - name : ' Terraform plan'
186
+ - name : " Terraform plan"
187
187
working-directory : ./kubestack-starter-${{ matrix.starter }}
188
188
env :
189
189
KBST_AUTH_AWS : ${{ secrets.KBST_AUTH_AWS }}
@@ -203,28 +203,27 @@ jobs:
203
203
runs-on : ubuntu-latest
204
204
needs : [test]
205
205
206
-
207
206
strategy :
208
207
matrix :
209
- starter : ["multi-cloud", "aks", "eks", "gke" , "kind"]
208
+ starter : ["multi-cloud", "aks", "eks", "gke", "kind"]
210
209
211
210
steps :
212
- - name : ' Download test-artifacts'
213
- uses : actions/download-artifact@v3
211
+ - name : " Download test-artifacts"
212
+ uses : actions/download-artifact@v4
214
213
with :
215
214
name : test-artifacts
216
215
path : ./quickstart/_dist
217
216
218
217
- name : Install Cosign
219
218
uses : sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
220
219
221
- - name : ' Docker login'
220
+ - name : " Docker login"
222
221
uses : docker/login-action@v2
223
222
with :
224
223
username : kbstci
225
224
password : ${{ secrets.DOCKER_AUTH }}
226
225
227
- - name : ' Docker push'
226
+ - name : " Docker push"
228
227
# cosign copy copies the images and the signature from one place to another
229
228
# then we dont need to sign again the same image
230
229
env :
@@ -246,27 +245,27 @@ jobs:
246
245
247
246
strategy :
248
247
matrix :
249
- starter : ["multi-cloud", "aks", "eks", "gke" , "kind"]
248
+ starter : ["multi-cloud", "aks", "eks", "gke", "kind"]
250
249
251
250
steps :
252
- - name : ' Download test-artifacts'
253
- uses : actions/download-artifact@v3
251
+ - name : " Download test-artifacts"
252
+ uses : actions/download-artifact@v4
254
253
with :
255
254
name : test-artifacts
256
255
path : ./quickstart/_dist
257
256
258
257
- name : Install Cosign
259
258
uses : sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
260
259
261
- - id : ' auth'
262
- uses : ' google-github-actions/auth@v1'
260
+ - id : " auth"
261
+ uses : " google-github-actions/auth@v1"
263
262
with :
264
263
credentials_json : ${{ secrets.GCLOUD_AUTH }}
265
264
266
- - name : ' Setup gcloud'
265
+ - name : " Setup gcloud"
267
266
uses : google-github-actions/setup-gcloud@v1
268
267
269
- - name : ' Publish ${{ matrix.starter }} starter'
268
+ - name : " Publish ${{ matrix.starter }} starter"
270
269
env :
271
270
COSIGN_EXPERIMENTAL : true
272
271
run : |
0 commit comments