27
27
preview_infra_provider : ${{ contains( steps.pr-details.outputs.pr_body, '[X] /werft with-gce-vm') && 'gce' || 'harvester' }}
28
28
build_no_cache : ${{ contains( steps.pr-details.outputs.pr_body, '[x] leeway-no-cache') }}
29
29
build_no_test : ${{ contains( steps.pr-details.outputs.pr_body, '[x] /werft no-test') }}
30
- build_leeway_target : ${{ steps.output.outputs.build_leeway_target }}
31
30
with_large_vm : ${{ contains( steps.pr-details.outputs.pr_body, '[X] /werft with-large-vm') }}
32
31
publish_to_npm : ${{ contains( steps.pr-details.outputs.pr_body, '[X] /werft publish-to-npm') }}
33
32
publish_to_jbmp : ${{ contains( steps.pr-details.outputs.pr_body, '[X] /werft publish-to-jb-marketplace') }}
68
67
shell : bash
69
68
run : |
70
69
{
71
- echo "build_leeway_target=$(echo "$PR_DESC" | sed -n -e 's/^.*leeway-target=//p' | sed 's/\r$//')"
72
70
echo "workspace_feature_flags=$(echo "$PR_DESC" | grep -oP '(?<=\[X\] workspace-feature-flags).*')"
73
71
} >> $GITHUB_OUTPUT
74
72
@@ -211,6 +209,21 @@ jobs:
211
209
npm-auth-token:gitpod-core-dev/npm-auth-token
212
210
jb-marketplace-publish-token:gitpod-core-dev/jb-marketplace-publish-token
213
211
codecov-token:gitpod-core-dev/codecov
212
+ - name : Dev Build
213
+ id : dev-build
214
+ env :
215
+ JAVA_HOME : /home/gitpod/.sdkman/candidates/java/current
216
+ VERSION : ${{needs.configuration.outputs.version}}
217
+ shell : bash
218
+ working-directory : /workspace/gitpod
219
+ run : |
220
+ leeway build dev:all \
221
+ --docker-build-options network=host \
222
+ --cache remote \
223
+ -Dversion=$VERSION \
224
+ -DlocalAppVersion=$VERSION \
225
+ -DimageRepoBase=eu.gcr.io/gitpod-core-dev/dev
226
+
214
227
- name : Leeway Build
215
228
id : leeway
216
229
shell : bash
@@ -223,7 +236,6 @@ jobs:
223
236
SEGMENT_IO_TOKEN : ' ${{ steps.secrets.outputs.segment-io-token }}'
224
237
PR_NO_CACHE : ${{needs.configuration.outputs.build_no_cache}}
225
238
PR_NO_TEST : ${{needs.configuration.outputs.build_no_test}}
226
- PR_LEEWAY_TARGET : ${{needs.configuration.outputs.build_leeway_target}}
227
239
NPM_AUTH_TOKEN : ' ${{ steps.secrets.outputs.npm-auth-token }}'
228
240
PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
229
241
JB_MARKETPLACE_PUBLISH_TOKEN : ' ${{ steps.secrets.outputs.jb-marketplace-publish-token }}'
@@ -232,23 +244,24 @@ jobs:
232
244
run : |
233
245
[[ "$PR_NO_CACHE" = "true" ]] && CACHE="none" || CACHE="remote"
234
246
[[ "$PR_NO_TEST" = "true" ]] && TEST="--dont-test" || TEST=""
235
- [[ -z "$PR_LEEWAY_TARGET" ]] && PR_LEEWAY_TARGET="components:all"
236
247
[[ "${PUBLISH_TO_NPM}" = 'true' ]] && NPM_PUBLISH_TRIGGER=$(date +%s%3N) || NPM_PUBLISH_TRIGGER="false"
237
248
238
249
mkdir -p /__w/gitpod/gitpod/test-coverage-report
239
250
240
251
RESULT=0
241
252
set -x
242
253
# CI=true is a var set by GHA. Unsetting it for the build, as yarn builds treat warnings as errors if that var is set to true
243
- CI= leeway build $PR_LEEWAY_TARGET \
254
+ CI= leeway build \
244
255
--cache $CACHE \
245
256
$TEST \
246
257
-Dversion=$VERSION \
258
+ --docker-build-options network=host \
247
259
-DlocalAppVersion=$VERSION \
248
260
-DSEGMENT_IO_TOKEN=$SEGMENT_IO_TOKEN \
249
261
-DpublishToNPM="${PUBLISH_TO_NPM}" \
250
262
-DnpmPublishTrigger="${NPM_PUBLISH_TRIGGER}" \
251
263
-DpublishToJBMarketplace="${PUBLISH_TO_JBPM}" \
264
+ -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build \
252
265
--coverage-output-path=/__w/gitpod/gitpod/test-coverage-report \
253
266
--report report.html || RESULT=$?
254
267
set +x
0 commit comments