Skip to content

Commit 4fdc6c7

Browse files
authored
[gated-release] trigger staging/prod install (#18418)
* trigger staging/prod install * params * quotes * strategy in the right place
1 parent fedfc4a commit 4fdc6c7

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build
22
on:
33
pull_request:
4-
types: [opened, edited]
4+
types: [ opened, edited ]
55
push:
66
workflow_dispatch:
77
inputs:
@@ -24,7 +24,7 @@ jobs:
2424
configuration:
2525
name: Configure job parameters
2626
runs-on: ${{ needs.create-runner.outputs.label }}
27-
needs: [create-runner]
27+
needs: [ create-runner ]
2828
concurrency:
2929
group: ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-configuration
3030
cancel-in-progress: true
@@ -91,7 +91,7 @@ jobs:
9191
if: |
9292
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
9393
(needs.configuration.outputs.preview_enable == 'true')
94-
needs: [configuration, create-runner]
94+
needs: [ configuration, create-runner ]
9595
concurrency:
9696
group: ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-build-previewctl
9797
cancel-in-progress: ${{ needs.configuration.outputs.is_main_branch == 'false' }}
@@ -114,7 +114,7 @@ jobs:
114114
echo "previewctl_hash=$(leeway describe dev/preview/previewctl:docker -Dversion="${{needs.configuration.outputs.version}}" -t '{{ .Metadata.Version }}')" >> $GITHUB_OUTPUT
115115
116116
infrastructure:
117-
needs: [configuration, build-previewctl, create-runner]
117+
needs: [ configuration, build-previewctl, create-runner ]
118118
if: |
119119
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
120120
(needs.configuration.outputs.preview_enable == 'true') &&
@@ -138,7 +138,7 @@ jobs:
138138

139139
build-gitpod:
140140
name: Build Gitpod
141-
needs: [configuration, create-runner]
141+
needs: [ configuration, create-runner ]
142142
runs-on: ${{ needs.create-runner.outputs.label }}
143143
concurrency:
144144
group: ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-build-gitpod
@@ -287,8 +287,12 @@ jobs:
287287

288288
install-app:
289289
runs-on: ${{ needs.create-runner.outputs.label }}
290-
needs: [configuration, build-gitpod, create-runner]
290+
needs: [ configuration, build-gitpod, create-runner ]
291291
if: ${{ needs.configuration.outputs.is_main_branch == 'true' }}
292+
strategy:
293+
fail-fast: false
294+
matrix:
295+
env: [ staging, production ]
292296
steps:
293297
- uses: gitpod-io/[email protected]
294298
id: auth
@@ -307,7 +311,10 @@ jobs:
307311
workflow_id: 'install-app.yaml',
308312
ref: 'main',
309313
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 }}"
311318
}
312319
})
313320
@@ -362,7 +369,7 @@ jobs:
362369
363370
monitoring:
364371
name: "Install Monitoring Satellite"
365-
needs: [infrastructure, build-previewctl, create-runner]
372+
needs: [ infrastructure, build-previewctl, create-runner ]
366373
runs-on: ${{ needs.create-runner.outputs.label }}
367374
if: needs.configuration.outputs.with_monitoring == 'true'
368375
concurrency:

0 commit comments

Comments
 (0)