Skip to content

Commit

Permalink
KOGITO-8942: Remove Dashbuilder Authoring and Dashbuilder Runtime App (
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuino authored Apr 12, 2023
1 parent 2a36415 commit 80bddfe
Show file tree
Hide file tree
Showing 2,510 changed files with 2,003 additions and 236,376 deletions.
109 changes: 1 addition & 108 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
runners:
type: string
required: false
default: '{"dmn_dev_deployment_base_image":"false","kie_sandbox_image":"false","kie_sandbox_extended_services_image":"false","git_cors_proxy_image":"false","online_editor":"false","chrome_extensions":"false","vscode_extensions_dev":"false","vscode_extensions_prod":"false","npm_packages":"false","standalone_editors_cdn":"false","extended_services":"false","dashbuilder":"false","dashbuilder_images":"false","serverless_logic_web_tools":"false","serverless_logic_web_tools_swf_builder_image":"false","serverless_logic_web_tools_base_builder_image":"false","dashbuilder_viewer_image":"false","kn_plugin_workflow":"false"}'
default: '{"dmn_dev_deployment_base_image":"false","kie_sandbox_image":"false","kie_sandbox_extended_services_image":"false","git_cors_proxy_image":"false","online_editor":"false","chrome_extensions":"false","vscode_extensions_dev":"false","vscode_extensions_prod":"false","npm_packages":"false","standalone_editors_cdn":"false","extended_services":"false","serverless_logic_web_tools":"false","serverless_logic_web_tools_swf_builder_image":"false","serverless_logic_web_tools_base_builder_image":"false","dashbuilder_viewer_image":"false","kn_plugin_workflow":"false"}'
secrets:
kie_tools_bot_token:
required: false
Expand Down Expand Up @@ -69,8 +69,6 @@ jobs:
npm_packages: ${{ steps.set_runners.outputs.npm_packages }}
standalone_editors_cdn: ${{ steps.set_runners.outputs.standalone_editors_cdn }}
extended_services: ${{ steps.set_runners.outputs.extended_services }}
dashbuilder: ${{ steps.set_runners.outputs.dashbuilder }}
dashbuilder_images: ${{ steps.set_runners.outputs.dashbuilder_images }}
serverless_logic_web_tools: ${{ steps.set_runners.outputs.serverless_logic_web_tools }}
serverless_logic_web_tools_swf_builder_image: ${{ steps.set_runners.outputs.serverless_logic_web_tools_swf_builder_image }}
serverless_logic_web_tools_base_builder_image: ${{ steps.set_runners.outputs.serverless_logic_web_tools_base_builder_image }}
Expand All @@ -93,8 +91,6 @@ jobs:
echo "npm_packages=${{ fromJSON(inputs.runners).npm_packages }}" >> $GITHUB_OUTPUT
echo "standalone_editors_cdn=${{ fromJSON(inputs.runners).standalone_editors_cdn }}" >> $GITHUB_OUTPUT
echo "extended_services=${{ fromJSON(inputs.runners).extended_services }}" >> $GITHUB_OUTPUT
echo "dashbuilder=${{ fromJSON(inputs.runners).dashbuilder }}" >> $GITHUB_OUTPUT
echo "dashbuilder_images=${{ fromJSON(inputs.runners).dashbuilder_images }}" >> $GITHUB_OUTPUT
echo "serverless_logic_web_tools=${{ fromJSON(inputs.runners).serverless_logic_web_tools }}" >> $GITHUB_OUTPUT
echo "serverless_logic_web_tools_swf_builder_image=${{ fromJSON(inputs.runners).serverless_logic_web_tools_swf_builder_image }}" >> $GITHUB_OUTPUT
echo "serverless_logic_web_tools_base_builder_image=${{ fromJSON(inputs.runners).serverless_logic_web_tools_base_builder_image }}" >> $GITHUB_OUTPUT
Expand All @@ -115,8 +111,6 @@ jobs:
echo "npm_packages: ${{ steps.set_runners.outputs.npm_packages }}"
echo "standalone_editors_cdn: ${{ steps.set_runners.outputs.standalone_editors_cdn }}"
echo "extended_services: ${{ steps.set_runners.outputs.extended_services }}"
echo "dashbuilder: ${{ steps.set_runners.outputs.dashbuilder }}"
echo "dashbuilder_images: ${{ steps.set_runners.outputs.dashbuilder_images }}"
echo "serverless_logic_web_tools: ${{ steps.set_runners.outputs.serverless_logic_web_tools }}"
echo "serverless_logic_web_tools_swf_builder_image: ${{ steps.set_runners.outputs.serverless_logic_web_tools_swf_builder_image }}"
echo "serverless_logic_web_tools_base_builder_image: ${{ steps.set_runners.outputs.serverless_logic_web_tools_base_builder_image }}"
Expand Down Expand Up @@ -1002,107 +996,6 @@ jobs:
asset_name: "kie_sandbox_extended_services_windows_${{ inputs.tag }}.exe"
asset_content_type: application/octet-stream

dashbuilder:
if: ${{ needs.extract_runners.outputs.dashbuilder == 'true' }}
runs-on: ubuntu-latest
needs: [extract_runners]
steps:
- name: "Checkout @ GitHub default"
uses: actions/checkout@v3

- name: "Checkout @ Simulated squashed-merge if PR"
uses: ./.github/actions/checkout-pr
with:
ref: ${{ inputs.base_ref }}

- name: "Setup environment"
id: setup_env
uses: ./.github/actions/setup-env

- name: "Bootstrap"
id: bootstrap
uses: ./.github/actions/bootstrap
with:
pnpm_filter_string: -F @kie-tools/dashbuilder...

- name: "Build"
shell: bash
run: |
pnpm ${{ steps.bootstrap.outputs.pnpm_filter_string }} build:prod
- name: "Upload DashBuilder Assets"
if: ${{ !inputs.dry_run }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.gh_token }}
with:
upload_url: ${{ inputs.upload_asset_url }}
asset_path: ./packages/dashbuilder/dist/dashbuilder_dist.zip
asset_name: dashbuilder_dist_${{ inputs.tag }}.zip
asset_content_type: application/zip

dashbuilder_images:
env:
DASHBUILDER__baseImageRegistry: "quay.io"
DASHBUILDER__baseImageAccount: "kie-tools"
DASHBUILDER_AUTHORING__baseImageName: "dashbuilder-authoring"
DASHBUILDER_RUNTIME__baseImageName: "dashbuilder-runtime"
DASHBUILDER__baseImageTag: "${{ inputs.tag }}"
DASHBUILDER__baseImageBuildTags: "latest ${{ inputs.tag }}"

if: ${{ needs.extract_runners.outputs.dashbuilder_images == 'true' }}
runs-on: ubuntu-latest
needs: [extract_runners]
steps:
- name: "Checkout @ GitHub default"
uses: actions/checkout@v3
with:
path: kie-tools

- name: "Checkout @ Simulated squashed-merge if PR"
uses: ./kie-tools/.github/actions/checkout-pr
with:
ref: ${{ inputs.base_ref }}
path: kie-tools

- name: "Setup environment"
id: setup_env
uses: ./kie-tools/.github/actions/setup-env
with:
working_dir: kie-tools

- name: "Bootstrap"
id: bootstrap
uses: ./kie-tools/.github/actions/bootstrap
with:
working_dir: kie-tools
pnpm_filter_string: -F @kie-tools/dashbuilder-images...

- name: "Build Dashbuilder Images"
working-directory: ${{ github.workspace }}/kie-tools
run: |
pnpm ${{ steps.bootstrap.outputs.pnpm_filter_string }} build:prod
- name: "Push dashbuilder-authoring image to quay.io"
if: ${{ !inputs.dry_run }}
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DASHBUILDER_AUTHORING__baseImageName }}"
tags: "${{ env.DASHBUILDER__baseImageBuildTags }}"
registry: "${{ env.DASHBUILDER__baseImageRegistry }}/${{ env.DASHBUILDER__baseImageAccount }}"
username: "${{ env.DASHBUILDER__baseImageAccount }}"
password: "${{ secrets.quay_registry_password }}"

- name: "Push dashbuilder-runtime image to quay.io"
if: ${{ !inputs.dry_run }}
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DASHBUILDER_RUNTIME__baseImageName }}"
tags: "${{ env.DASHBUILDER__baseImageBuildTags }}"
registry: "${{ env.DASHBUILDER__baseImageRegistry }}/${{ env.DASHBUILDER__baseImageAccount }}"
username: "${{ env.DASHBUILDER__baseImageAccount }}"
password: "${{ secrets.quay_registry_password }}"

kn_plugin_workflow:
if: ${{ needs.extract_runners.outputs.kn_plugin_workflow == 'true' }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
with:
dry_run: true
base_ref: ${{ github.event.pull_request && github.base_ref || github.ref }}
runners: '{"dmn_dev_deployment_base_image":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","git_cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","dashbuilder":"true","dashbuilder_images":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true"}'
runners: '{"dmn_dev_deployment_base_image":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","git_cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true"}'
2 changes: 1 addition & 1 deletion .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
runners:
type: string
required: true
default: '{"dmn_dev_deployment_base_image":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","git_cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","dashbuilder":"true","dashbuilder_images":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true"}'
default: '{"dmn_dev_deployment_base_image":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","git_cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true"}'
description: "Jobs to run (JSON)"

jobs:
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/staging_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ jobs:
DMN_DEV_DEPLOYMENT__baseImageTag: "${{ inputs.tag }}-prerelease"
DMN_DEV_DEPLOYMENT__baseImageBuildTags: "${{ inputs.tag }}-prerelease"

DASHBUILDER__baseImageRegistry: "quay.io"
DASHBUILDER__baseImageAccount: "kie-tools"
DASHBUILDER_AUTHORING__baseImageName: "dashbuilder-authoring"
DASHBUILDER_RUNTIME__baseImageName: "dashbuilder-runtime"
DASHBUILDER__baseImageTag: "${{ inputs.tag }}-prerelease"
DASHBUILDER__baseImageBuildTags: "${{ inputs.tag }}-prerelease"

KIE_SANDBOX__imageRegistry: "quay.io"
KIE_SANDBOX__imageAccount: "kie-tools"
KIE_SANDBOX__imageName: "kie-sandbox-image"
Expand Down Expand Up @@ -558,37 +551,6 @@ jobs:
asset_name: "STAGING__kie_sandbox_extended_services_windows_${{ inputs.tag }}.exe"
asset_content_type: application/octet-stream

- name: "STAGING: Upload DashBuilder Assets (Ubuntu only)"
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.gh_token }}
with:
upload_url: ${{ inputs.upload_asset_url }}
asset_path: ${{ github.workspace }}/kie-tools/packages/dashbuilder/dist/dashbuilder_dist.zip
asset_name: STAGING__dashbuilder_dist_${{ inputs.tag }}.zip
asset_content_type: application/zip

- name: "STAGING Push dashbuilder-authoring image to quay.io (Ubuntu only)"
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DASHBUILDER_AUTHORING__baseImageName }}"
tags: "${{ env.DASHBUILDER__baseImageBuildTags }}"
registry: "${{ env.DASHBUILDER__baseImageRegistry }}/${{ env.DASHBUILDER__baseImageAccount }}"
username: "${{ env.DASHBUILDER__baseImageAccount }}"
password: "${{ secrets.quay_registry_password }}"

- name: "STAGING Push dashbuilder-runtime image to quay.io (Ubuntu only)"
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
uses: redhat-actions/push-to-registry@v2
with:
image: "${{ env.DASHBUILDER_RUNTIME__baseImageName }}"
tags: "${{ env.DASHBUILDER__baseImageBuildTags }}"
registry: "${{ env.DASHBUILDER__baseImageRegistry }}/${{ env.DASHBUILDER__baseImageAccount }}"
username: "${{ env.DASHBUILDER__baseImageAccount }}"
password: "${{ secrets.quay_registry_password }}"

- name: "STAGING: Upload Knative CLI Workflow Plugin for Linux (Ubuntu only)"
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
uses: actions/[email protected]
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions packages/dashbuilder-images/ContainerFile.DashBuilderRuntime

This file was deleted.

60 changes: 0 additions & 60 deletions packages/dashbuilder-images/env/index.js

This file was deleted.

34 changes: 0 additions & 34 deletions packages/dashbuilder-images/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/dashbuilder/appformer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@
<module>uberfire-commons</module>
<module>uberfire-api</module>
<module>uberfire-client-api</module>
<module>uberfire-server</module>
<module>uberfire-testing-utils</module>
<module>uberfire-workbench</module>
<module>uberfire-client-all</module>
Expand Down

This file was deleted.

Loading

0 comments on commit 80bddfe

Please sign in to comment.