@@ -10,16 +10,15 @@ jobs:
10
10
11
11
configuration :
12
12
name : Configure job parameters
13
- runs-on : [self-hosted ]
14
- concurrency :
15
- group : ${{ github.head_ref || github.ref }}-configuration
16
- cancel-in-progress : true
13
+ runs-on : [ssd-runner-set ]
14
+ # concurrency:
15
+ # group: ${{ github.head_ref || github.ref }}-configuration
16
+ # cancel-in-progress: true
17
17
outputs :
18
18
is_main_branch : ${{ steps.output.outputs.is_main_branch }}
19
19
version : ${{ steps.output.outputs.version }}
20
20
preview_enable : ${{ steps.output.outputs.preview_enable }}
21
21
preview_infra_provider : ${{ steps.output.outputs.preview_infra_provider }}
22
- with_github_actions : ${{ steps.output.outputs.with_github_actions }}
23
22
build_no_cache : ${{ steps.output.outputs.build_no_cache }}
24
23
build_no_test : ${{ steps.output.outputs.build_no_test }}
25
24
build_leeway_target : ${{ steps.output.outputs.build_leeway_target }}
32
31
with_slow_database : ${{ steps.output.outputs.with_slow_database }}
33
32
analytics : ${{ steps.output.outputs.analytics }}
34
33
workspace_feature_flags : ${{ steps.output.outputs.workspace_feature_flags }}
34
+ with_werft : ${{ steps.output.outputs.with-werft }}
35
35
steps :
36
36
- name : " Determine Branch"
37
37
id : branches
45
45
{
46
46
echo "is_main_branch=${{ (github.head_ref || github.ref) == 'refs/heads/main' }}"
47
47
echo "version=${{ steps.branches.outputs.sanitized-branch-name }}-gha.${{github.run_number}}"
48
- echo "with_github_actions=${{ contains(github.event.pull_request.body, '[x] /werft with-github-actions') }}"
49
48
echo "preview_enable=${{ contains(github.event.pull_request.body, '[x] /werft with-preview') }}"
50
49
echo "preview_infra_provider=${{ contains(github.event.pull_request.body, '[X] /werft with-gce-vm') && 'gce' || 'harvester' }}"
51
50
echo "build_no_cache=${{ contains(github.event.pull_request.body, '[x] leeway-no-cache') }}"
@@ -59,17 +58,19 @@ jobs:
59
58
echo "with_ee_license=${{ contains(github.event.pull_request.body, '[X] with-ee-license') }}"
60
59
echo "with_slow_database=${{ contains(github.event.pull_request.body, '[X] with-slow-database') }}"
61
60
echo "analytics=${{ contains(github.event.pull_request.body, '[X] analytics') }}"
61
+ echo "with_werft=${{ contains(github.event.pull_request.body, '[x] /werft with-werft') }}"
62
62
echo "workspace_feature_flags=$(echo "$PR_DESC" | grep -oP '(?<=\[X\] workspace-feature-flags).*')"
63
63
} >> $GITHUB_OUTPUT
64
64
65
65
build-previewctl :
66
66
name : Build previewctl
67
67
needs : [configuration]
68
+ if : ${{ needs.configuration.outputs.preview_enable == 'true' }}
68
69
concurrency :
69
70
group : ${{ github.head_ref || github.ref }}-build-previewctl
70
71
# see comment in build-gitpod below for context
71
72
cancel-in-progress : ${{ needs.configuration.outputs.is_main_branch == 'false' }}
72
- runs-on : [self-hosted ]
73
+ runs-on : [ssd-runner-set ]
73
74
container :
74
75
image : eu.gcr.io/gitpod-core-dev/dev/dev-environment:mads-leeway-v0.7.3.4
75
76
outputs :
99
100
100
101
infrastructure :
101
102
needs : [configuration, build-previewctl]
102
- if : ${{ needs.configuration.outputs.preview_enable == 'true' && needs.configuration.outputs.with_github_actions == 'true' }}
103
- runs-on : [self-hosted ]
103
+ if : ${{ needs.configuration.outputs.preview_enable == 'true' }}
104
+ runs-on : [ssd-runner-set ]
104
105
concurrency :
105
106
group : ${{ github.head_ref || github.ref }}-infrastructure
106
107
steps :
@@ -118,13 +119,13 @@ jobs:
118
119
build-gitpod :
119
120
name : Build Gitpod
120
121
needs : [configuration]
121
- if : ${{ needs.configuration.outputs.is_main_branch == 'true' || needs.configuration.outputs.with_github_actions == 'true' }}
122
- runs-on : [self-hosted]
123
- concurrency :
124
- group : ${{ github.head_ref || github.ref }}-build-gitpod
122
+ runs-on : [ssd-runner-set]
123
+ if : ${{ needs.configuration.with_werft != 'true' }}
124
+ # concurrency:
125
+ # group: ${{ github.head_ref || github.ref }}-build-gitpod
125
126
# For the main branch we always want the build job to run to completion
126
127
# For other branches we only care about the "latest" version, so it is fine to cancel in-progress builds
127
- cancel-in-progress : ${{ needs.configuration.outputs.is_main_branch == 'false' }}
128
+ # cancel-in-progress: ${{ needs.configuration.outputs.is_main_branch == 'false' }}
128
129
services :
129
130
mysql :
130
131
image : mysql:5.7
@@ -202,9 +203,9 @@ jobs:
202
203
PR_NO_TEST : ${{needs.configuration.outputs.build_no_test}}
203
204
PR_LEEWAY_TARGET : ${{needs.configuration.outputs.build_leeway_target}}
204
205
NPM_AUTH_TOKEN : ' ${{ steps.secrets.outputs.npm-auth-token }}'
205
- PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' }}
206
+ PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
206
207
JB_MARKETPLACE_PUBLISH_TOKEN : ' ${{ steps.secrets.outputs.jb-marketplace-publish-token }}'
207
- PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' }}
208
+ PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
208
209
CODECOV_TOKEN : ' ${{ steps.secrets.outputs.codecov-token }}'
209
210
run : |
210
211
[[ "$PR_NO_CACHE" = "true" ]] && CACHE="none" || CACHE="remote"
@@ -242,7 +243,7 @@ jobs:
242
243
install :
243
244
name : " Install Gitpod"
244
245
needs : [configuration, build-previewctl, build-gitpod, infrastructure]
245
- runs-on : [self-hosted ]
246
+ runs-on : [ssd-runner-set ]
246
247
concurrency :
247
248
group : ${{ github.head_ref || github.ref }}-install
248
249
cancel-in-progress : true
@@ -266,7 +267,7 @@ jobs:
266
267
monitoring :
267
268
name : " Install Monitoring Satellite"
268
269
needs : [infrastructure, build-previewctl]
269
- runs-on : [self-hosted ]
270
+ runs-on : [ssd-runner-set ]
270
271
concurrency :
271
272
group : ${{ github.head_ref || github.ref }}-monitoring
272
273
cancel-in-progress : true
0 commit comments