1
1
name : Build
2
2
on :
3
3
pull_request :
4
- types : [opened, edited]
4
+ types : [ opened, edited ]
5
5
push :
6
6
workflow_dispatch :
7
7
inputs :
24
24
configuration :
25
25
name : Configure job parameters
26
26
runs-on : ${{ needs.create-runner.outputs.label }}
27
- needs : [create-runner]
27
+ needs : [ create-runner ]
28
28
concurrency :
29
29
group : ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-configuration
30
30
cancel-in-progress : true
91
91
if : |
92
92
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
93
93
(needs.configuration.outputs.preview_enable == 'true')
94
- needs : [configuration, create-runner]
94
+ needs : [ configuration, create-runner ]
95
95
concurrency :
96
96
group : ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-build-previewctl
97
97
cancel-in-progress : ${{ needs.configuration.outputs.is_main_branch == 'false' }}
@@ -114,7 +114,7 @@ jobs:
114
114
echo "previewctl_hash=$(leeway describe dev/preview/previewctl:docker -Dversion="${{needs.configuration.outputs.version}}" -t '{{ .Metadata.Version }}')" >> $GITHUB_OUTPUT
115
115
116
116
infrastructure :
117
- needs : [configuration, build-previewctl, create-runner]
117
+ needs : [ configuration, build-previewctl, create-runner ]
118
118
if : |
119
119
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
120
120
(needs.configuration.outputs.preview_enable == 'true') &&
@@ -138,7 +138,7 @@ jobs:
138
138
139
139
build-gitpod :
140
140
name : Build Gitpod
141
- needs : [configuration, create-runner]
141
+ needs : [ configuration, create-runner ]
142
142
runs-on : ${{ needs.create-runner.outputs.label }}
143
143
concurrency :
144
144
group : ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-build-gitpod
@@ -287,8 +287,12 @@ jobs:
287
287
288
288
install-app :
289
289
runs-on : ${{ needs.create-runner.outputs.label }}
290
- needs : [configuration, build-gitpod, create-runner]
290
+ needs : [ configuration, build-gitpod, create-runner ]
291
291
if : ${{ needs.configuration.outputs.is_main_branch == 'true' }}
292
+ strategy :
293
+ fail-fast : false
294
+ matrix :
295
+ env : [ staging, production ]
292
296
steps :
293
297
-
uses :
gitpod-io/[email protected]
294
298
id : auth
@@ -307,7 +311,10 @@ jobs:
307
311
workflow_id: 'install-app.yaml',
308
312
ref: 'main',
309
313
inputs: {
310
- "version": '${{ needs.configuration.outputs.version }}'
314
+ "version": '${{ needs.configuration.outputs.version }}',
315
+ "repo": "https://github.com/gitpod-io/gitpod",
316
+ "commit": "${{github.sha}}",
317
+ "env": "${{ matrix.env }}"
311
318
}
312
319
})
313
320
@@ -362,7 +369,7 @@ jobs:
362
369
363
370
monitoring :
364
371
name : " Install Monitoring Satellite"
365
- needs : [infrastructure, build-previewctl, create-runner]
372
+ needs : [ infrastructure, build-previewctl, create-runner ]
366
373
runs-on : ${{ needs.create-runner.outputs.label }}
367
374
if : needs.configuration.outputs.with_monitoring == 'true'
368
375
concurrency :
0 commit comments