Skip to content

Commit

Permalink
Build base-image and blank-app together
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoelg committed Feb 29, 2024
1 parent 9673a2c commit 33b932f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
27 changes: 4 additions & 23 deletions .ci/jenkins/Jenkinsfile.staging-build
Original file line number Diff line number Diff line change
Expand Up @@ -626,23 +626,25 @@ pipeline {
}
}

stage('Build (dev-deployment-base-image)') {
stage('Build (dev-deployment-base-image and dev-deployment-kogito-quarkus-blank-app-image)') {
steps {
dir('kie-tools') {
script {
buildDevDeploymentBaseImage()
buildDevDeploymentKogitoQuarkusBlankAppImage()
}
}
}
}

stage('STAGING: Push dev-deployment-base-image to quay.io') {
stage('STAGING: Push dev-deployment-base-image and dev-deployment-kogito-quarkus-blank-app-image to quay.io') {
when {
expression { !params.DRY_RUN }
}
steps {
script {
pushDevDeploymentBaseImageToQuay()
pushDevDeploymentKogitoQuarkusBlankAppImageToQuay()
}
}
}
Expand All @@ -668,27 +670,6 @@ pipeline {
}
}

stage('Build (dev-deployment-kogito-quarkus-blank-app-image)') {
steps {
dir('kie-tools') {
script {
buildDevDeploymentKogitoQuarkusBlankAppImage()
}
}
}
}

stage('STAGING: Push dev-deployment-kogito-quarkus-blank-app-image to quay.io') {
when {
expression { !params.DRY_RUN }
}
steps {
script {
pushDevDeploymentKogitoQuarkusBlankAppImageToQuay()
}
}
}

stage('Build (serverless-logic-web-tools-base-builder-image)') {
steps {
dir('kie-tools') {
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ jobs:
START_SERVER_AND_TEST_INSECURE: "true"
NODE_OPTIONS: "--max_old_space_size=4096"
run: >-
pnpm
-F='!@kie-tools/serverless-logic-web-tools-swf-dev-mode-image'
pnpm
-F='!@kie-tools/serverless-logic-web-tools-swf-dev-mode-image'
-F='!@kie-tools/dev-deployment-base-image'
-F='!@kie-tools/dev-deployment-kogito-quarkus-blank-app'
-F='!@kie-tools/dev-deployment-dmn-form-webapp-image'
-F='!@kie-tools/serverless-logic-web-tools-base-builder-image'
-F='!@kie-tools/dashbuilder-viewer-image'
-F='!@kie-tools/serverless-logic-web-tools-base-builder-image'
-F='!@kie-tools/dashbuilder-viewer-image'
-r --workspace-concurrency=1 build:prod
- name: "FULL → Build → serverless-logic-web-tools-swf-dev-mode-image"
Expand All @@ -122,7 +123,7 @@ jobs:
echo "Build @kie-tools/serverless-logic-web-tools-swf-dev-mode-image"
pnpm -F @kie-tools/serverless-logic-web-tools-swf-dev-mode-image... --workspace-concurrency=1 build:prod
- name: "FULL → Build → dev-deployment-base-image"
- name: "FULL → Build → dev-deployment-base-image and dev-deployment-kogito-quarkus-blank-app"
if: steps.setup_build_mode.outputs.mode == 'full' && runner.os == 'Linux'
env:
KIE_TOOLS_BUILD__runTests: "true"
Expand All @@ -137,7 +138,7 @@ jobs:
podman system prune --all --force
fi
echo "Build @kie-tools/dev-deployment-base-image"
pnpm -F @kie-tools/dev-deployment-base-image... --workspace-concurrency=1 build:prod
pnpm -F @kie-tools/dev-deployment-base-image... -F @kie-tools/dev-deployment-kogito-quarkus-blank-app --workspace-concurrency=1 build:prod
- name: "FULL → Build → dev-deployment-dmn-form-webapp-image"
if: steps.setup_build_mode.outputs.mode == 'full' && runner.os == 'Linux'
Expand Down

0 comments on commit 33b932f

Please sign in to comment.