From 599c2be17d42a0d6ade20fb254cf19c2ef061b90 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 12:42:33 +0100 Subject: [PATCH 01/23] umbrella Sandbox --- .github/workflows/Umbrella_Sandbox_Setup.yml | 90 ++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/Umbrella_Sandbox_Setup.yml diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml new file mode 100644 index 0000000000..738a3b7f79 --- /dev/null +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -0,0 +1,90 @@ +--- +name: Umbrella Sandbox Setup + +on: + push: + branches: + - 'main' + - 'test/cypress-setup' + workflow_dispatch: + +jobs: + setup-sandbox: + runs-on: ubuntu-latest + env: + NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} + HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Kubernetes KinD Cluster + uses: container-tools/kind-action@0ad70e2299366b0e1552c7240f4e4567148f723e + with: + version: v0.20.0 + node_image: ${{ env.NODE_IMAGE }} + + - name: Verify Cluster + run: | + kubectl cluster-info + kubectl get nodes -o wide + + - name: Set up Helm + uses: azure/setup-helm@v4.1.0 + with: + version: ${{ env.HELM_VERSION }} + + - name: Build portal frontend + uses: docker/build-push-action@v4.1.0 + with: + context: . + file: ./.conf/Dockerfile.full + push: true + tags: kind-registry:5000/portal-frontend:testing + + - name: Add Tractus-X Helm Repository + run: | + helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev + helm repo update + + - name: Install Umbrella Chart Portal Subset + run: | + helm install \ + --set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \ + --set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \ + --namespace umbrella --create-namespace + + - name: Verify Deployment + run: | + kubectl get pods -n umbrella + helm ls --namespace umbrella + + - name: Install Node.js for Cypress + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install Cypress Dependencies + run: | + npm install cypress --legacy-peer-deps + + - name: Run Cypress Tests + env: + CYPRESS_baseUrl: http://localhost + run: | + npx cypress run + + - name: Debug Cluster (on failure) + if: failure() + run: | + kubectl describe pods -n umbrella + kubectl logs -n umbrella $(kubectl get pods -n umbrella -o jsonpath='{.items[0].metadata.name}') + + - name: Cleanup Resources + if: always() + run: | + helm uninstall umbrella --namespace umbrella || true + kubectl delete namespace umbrella || true + kind delete cluster || true From a9a40866851cb63f85de4627b8f47e89808339b1 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Mon, 17 Feb 2025 12:47:39 +0100 Subject: [PATCH 02/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 738a3b7f79..87be34a4b3 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -70,18 +70,6 @@ jobs: run: | npm install cypress --legacy-peer-deps - - name: Run Cypress Tests - env: - CYPRESS_baseUrl: http://localhost - run: | - npx cypress run - - - name: Debug Cluster (on failure) - if: failure() - run: | - kubectl describe pods -n umbrella - kubectl logs -n umbrella $(kubectl get pods -n umbrella -o jsonpath='{.items[0].metadata.name}') - - name: Cleanup Resources if: always() run: | From 0dbc0578debd47a877fe186d8a3464b84240f193 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Mon, 17 Feb 2025 12:48:55 +0100 Subject: [PATCH 03/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 87be34a4b3..43ed468572 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -5,7 +5,6 @@ on: push: branches: - 'main' - - 'test/cypress-setup' workflow_dispatch: jobs: From 23cae34b9c3d81fd7b8d5c32f23a4b8907a038c6 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 12:55:56 +0100 Subject: [PATCH 04/23] prettier --- .github/workflows/Umbrella_Sandbox_Setup.yml | 105 ++++++++++--------- 1 file changed, 54 insertions(+), 51 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 43ed468572..2a5b810b7c 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -2,6 +2,9 @@ name: Umbrella Sandbox Setup on: + pull_request: + branches: + - 'main' push: branches: - 'main' @@ -14,64 +17,64 @@ jobs: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Kubernetes KinD Cluster - uses: container-tools/kind-action@0ad70e2299366b0e1552c7240f4e4567148f723e - with: - version: v0.20.0 - node_image: ${{ env.NODE_IMAGE }} + - name: Kubernetes KinD Cluster + uses: container-tools/kind-action@0ad70e2299366b0e1552c7240f4e4567148f723e + with: + version: v0.20.0 + node_image: ${{ env.NODE_IMAGE }} - - name: Verify Cluster - run: | - kubectl cluster-info - kubectl get nodes -o wide + - name: Verify Cluster + run: | + kubectl cluster-info + kubectl get nodes -o wide - - name: Set up Helm - uses: azure/setup-helm@v4.1.0 - with: - version: ${{ env.HELM_VERSION }} + - name: Set up Helm + uses: azure/setup-helm@v4.1.0 + with: + version: ${{ env.HELM_VERSION }} - - name: Build portal frontend - uses: docker/build-push-action@v4.1.0 - with: - context: . - file: ./.conf/Dockerfile.full - push: true - tags: kind-registry:5000/portal-frontend:testing + - name: Build portal frontend + uses: docker/build-push-action@v4.1.0 + with: + context: . + file: ./.conf/Dockerfile.full + push: true + tags: kind-registry:5000/portal-frontend:testing - - name: Add Tractus-X Helm Repository - run: | - helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev - helm repo update + - name: Add Tractus-X Helm Repository + run: | + helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev + helm repo update - - name: Install Umbrella Chart Portal Subset - run: | - helm install \ - --set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \ - --set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \ - --namespace umbrella --create-namespace + - name: Install Umbrella Chart Portal Subset + run: | + helm install \ + --set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \ + --set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \ + --namespace umbrella --create-namespace - - name: Verify Deployment - run: | - kubectl get pods -n umbrella - helm ls --namespace umbrella + - name: Verify Deployment + run: | + kubectl get pods -n umbrella + helm ls --namespace umbrella - - name: Install Node.js for Cypress - uses: actions/setup-node@v3 - with: - node-version: '16' + - name: Install Node.js for Cypress + uses: actions/setup-node@v3 + with: + node-version: '16' - - name: Install Cypress Dependencies - run: | - npm install cypress --legacy-peer-deps + - name: Install Cypress Dependencies + run: | + npm install cypress --legacy-peer-deps - - name: Cleanup Resources - if: always() - run: | - helm uninstall umbrella --namespace umbrella || true - kubectl delete namespace umbrella || true - kind delete cluster || true + - name: Cleanup Resources + if: always() + run: | + helm uninstall umbrella --namespace umbrella || true + kubectl delete namespace umbrella || true + kind delete cluster || true From 506b85042a84ff1028eee63d0fa63baf4412c021 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 13:01:27 +0100 Subject: [PATCH 05/23] umbrella sandbox after build completed --- .github/workflows/Umbrella_Sandbox_Setup.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 2a5b810b7c..1bfaf62fad 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -1,4 +1,3 @@ ---- name: Umbrella Sandbox Setup on: @@ -9,10 +8,15 @@ on: branches: - 'main' workflow_dispatch: + workflow_run: + workflows: ['Build'] + types: + - completed jobs: setup-sandbox: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} # Solo si el build fue exitoso env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} From 955fbe80da4509b5d090dd759c91ae96e306df96 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Mon, 17 Feb 2025 14:03:52 +0100 Subject: [PATCH 06/23] Update build.yml --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4563b8379d..b9dba5c283 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,10 @@ name: build on: +#for testing purpouses + pull_request: + branches: + - 'main' push: branches: - 'main' From 38dfb0394dbce64a14668bf59da4bcaa3518ec55 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 14:08:31 +0100 Subject: [PATCH 07/23] build pretty --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9dba5c283..b35a19fa77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ name: build on: -#for testing purpouses + #for testing purpouses pull_request: branches: - 'main' From c5be0709e4051ad98c90c1250d6278efec6c5b45 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Mon, 17 Feb 2025 14:13:59 +0100 Subject: [PATCH 08/23] Update build.yml --- .github/workflows/build.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b35a19fa77..91772a7e0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -111,28 +111,3 @@ jobs: password: ${{ secrets.DOCKER_HUB_TOKEN }} repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }} readme-filepath: '.conf/docker-notice-portal.md' - - auth-and-dispatch: - needs: build-and-push-image - runs-on: ubuntu-latest - - steps: - - name: Get token - id: get_workflow_token - uses: peter-murray/workflow-application-token-action@8e4e6fbf6fcc8a272781d97597969d21b3812974 # v4.0.0 - with: - application_id: ${{ secrets.ORG_PORTAL_DISPATCH_APPID }} - application_private_key: ${{ secrets.ORG_PORTAL_DISPATCH_KEY }} - - - name: Trigger workflow - id: call_action - env: - TOKEN: ${{ steps.get_workflow_token.outputs.token }} - run: | - curl -v \ - --request POST \ - --url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/portal-image-update.yml/dispatches \ - --header "authorization: Bearer $TOKEN" \ - --header "Accept: application/vnd.github.v3+json" \ - --data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \ - --fail From 6223efde8261215e8444b1907ffe1aaa2bf6fd04 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 14:19:00 +0100 Subject: [PATCH 09/23] execute after build --- .github/workflows/Umbrella_Sandbox_Setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 1bfaf62fad..844dad008f 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -9,7 +9,7 @@ on: - 'main' workflow_dispatch: workflow_run: - workflows: ['Build'] + workflows: ['build'] types: - completed From 8d36e6dd89684bf95b600ff045a7e012a416489d Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 17 Feb 2025 14:20:42 +0100 Subject: [PATCH 10/23] execute after build --- .github/workflows/Umbrella_Sandbox_Setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 844dad008f..73eb25cef3 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -9,7 +9,7 @@ on: - 'main' workflow_dispatch: workflow_run: - workflows: ['build'] + workflows: ['build-and-push-image'] types: - completed From fe2a4e5f778c674356d25e2043aaf492d8a98b04 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 24 Feb 2025 12:31:47 +0100 Subject: [PATCH 11/23] umbrella execute after build --- .github/workflows/Umbrella_Sandbox_Setup.yml | 32 ++++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 73eb25cef3..bb21c18428 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -1,22 +1,36 @@ +############################################################### +# Copyright (c) 2025 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0. +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# SPDX-License-Identifier: Apache-2.0 +############################################################### + name: Umbrella Sandbox Setup on: - pull_request: - branches: - - 'main' - push: - branches: - - 'main' - workflow_dispatch: workflow_run: - workflows: ['build-and-push-image'] + workflows: ['build'] types: - completed + branches: + - main jobs: setup-sandbox: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Solo si el build fue exitoso + if: ${{ github.event.workflow_run.conclusion == 'success' }} env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} From 10d70210cdc53a7d8ab7244e90d1d8d1307d0e02 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 24 Feb 2025 12:45:56 +0100 Subject: [PATCH 12/23] updated to run after build --- .github/workflows/Umbrella_Sandbox_Setup.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index bb21c18428..c4f79f6cfe 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -28,9 +28,23 @@ on: - main jobs: + debug-workflow: + runs-on: ubuntu-latest + steps: + - name: Debug Workflow Run Info + env: + WORKFLOW_CONCLUSION: ${{ github.event.workflow_run.conclusion }} + WORKFLOW_NAME: ${{ github.event.workflow_run.name }} + WORKFLOW_STATUS: ${{ github.event.workflow_run.status }} + run: | + echo "Triggered by workflow: $WORKFLOW_NAME" + echo "Workflow conclusion: $WORKFLOW_CONCLUSION" + echo "Workflow status: $WORKFLOW_STATUS" + setup-sandbox: + needs: debug-workflow runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: github.event.workflow_run.conclusion == 'success' env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} From 288e518d06d3e3103e5e502ed6490ded4babdbfc Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Mon, 24 Feb 2025 13:01:06 +0100 Subject: [PATCH 13/23] updated to run after build --- .github/workflows/Umbrella_Sandbox_Setup.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index c4f79f6cfe..840fb90da0 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -22,10 +22,10 @@ name: Umbrella Sandbox Setup on: workflow_run: workflows: ['build'] - types: - - completed branches: - - main + - 'main' + types: + - 'completed' jobs: debug-workflow: From 80ea40ac4c6d911efcb803682b4b7cee5663df07 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:02:43 +0100 Subject: [PATCH 14/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 840fb90da0..e7f48b1fc8 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -21,11 +21,10 @@ name: Umbrella Sandbox Setup on: workflow_run: - workflows: ['build'] - branches: - - 'main' + workflows: + - build types: - - 'completed' + - completed jobs: debug-workflow: From 781e4fd0ddc33c1f92d90fb8ac983fe1ee242324 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:06:01 +0100 Subject: [PATCH 15/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index e7f48b1fc8..0934650920 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -22,9 +22,9 @@ name: Umbrella Sandbox Setup on: workflow_run: workflows: - - build + - 'build' types: - - completed + - 'completed' jobs: debug-workflow: From df62fe079b7475301308c03341267b5ded5daa9c Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:08:56 +0100 Subject: [PATCH 16/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 0934650920..3a0c77df44 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -21,10 +21,9 @@ name: Umbrella Sandbox Setup on: workflow_run: - workflows: - - 'build' + workflows: [ "build" ] types: - - 'completed' + - completed jobs: debug-workflow: From 2cdfbc2d3e3ee706c288aa932374e6b8a2db69ea Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:14:00 +0100 Subject: [PATCH 17/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 3a0c77df44..7727e5e4cf 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -20,6 +20,7 @@ name: Umbrella Sandbox Setup on: + workflow_dispatch: workflow_run: workflows: [ "build" ] types: From 784c5c51868cabaa4fd130a91320215cc360ca06 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:24:33 +0100 Subject: [PATCH 18/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 7727e5e4cf..a139593c0f 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -20,9 +20,10 @@ name: Umbrella Sandbox Setup on: - workflow_dispatch: + workflow_dispatch: {} workflow_run: - workflows: [ "build" ] + workflows: + - build types: - completed @@ -43,7 +44,7 @@ jobs: setup-sandbox: needs: debug-workflow runs-on: ubuntu-latest - if: github.event.workflow_run.conclusion == 'success' + if: ${{ github.event.workflow_run.conclusion == 'success' }} env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} @@ -85,9 +86,9 @@ jobs: - name: Install Umbrella Chart Portal Subset run: | helm install \ - --set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \ - --set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \ - --namespace umbrella --create-namespace + --set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \ + --set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \ + --namespace umbrella --create-namespace - name: Verify Deployment run: | From 8e496bac766240cb3d25e2ea238edd55ff915e68 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:46:27 +0100 Subject: [PATCH 19/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index a139593c0f..36826db2b3 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -20,7 +20,6 @@ name: Umbrella Sandbox Setup on: - workflow_dispatch: {} workflow_run: workflows: - build From 3f9785fc546801d27848283b7fe6fef0fbde1aa9 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:52:22 +0100 Subject: [PATCH 20/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 36826db2b3..7a03c37725 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -43,7 +43,6 @@ jobs: setup-sandbox: needs: debug-workflow runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} HELM_VERSION: ${{ github.event.inputs.helm_version || 'latest' }} From 4296e7576bc3a61e316bf3b6ac9adeabafd27019 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:55:19 +0100 Subject: [PATCH 21/23] Update Umbrella_Sandbox_Setup.yml --- .github/workflows/Umbrella_Sandbox_Setup.yml | 27 ++++++-------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 7a03c37725..7217c2765c 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -20,28 +20,17 @@ name: Umbrella Sandbox Setup on: - workflow_run: - workflows: - - build - types: - - completed + #for testing purpouses + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + workflow_dispatch: jobs: - debug-workflow: - runs-on: ubuntu-latest - steps: - - name: Debug Workflow Run Info - env: - WORKFLOW_CONCLUSION: ${{ github.event.workflow_run.conclusion }} - WORKFLOW_NAME: ${{ github.event.workflow_run.name }} - WORKFLOW_STATUS: ${{ github.event.workflow_run.status }} - run: | - echo "Triggered by workflow: $WORKFLOW_NAME" - echo "Workflow conclusion: $WORKFLOW_CONCLUSION" - echo "Workflow status: $WORKFLOW_STATUS" - setup-sandbox: - needs: debug-workflow runs-on: ubuntu-latest env: NODE_IMAGE: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} From 59d49e634b141b78236b9b03ef26f8cc595d66e4 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:55:42 +0100 Subject: [PATCH 22/23] Update build.yml --- .github/workflows/build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91772a7e0d..aa2b2d9744 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,10 +22,6 @@ name: build on: - #for testing purpouses - pull_request: - branches: - - 'main' push: branches: - 'main' From 4e591d147d3a460d75084e107d06aedb8e031e16 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Fri, 14 Mar 2025 08:47:20 +0100 Subject: [PATCH 23/23] Enable Ingress In umbrella Sandbox --- .github/workflows/Umbrella_Sandbox_Setup.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/Umbrella_Sandbox_Setup.yml b/.github/workflows/Umbrella_Sandbox_Setup.yml index 7217c2765c..c2fd4f85cb 100644 --- a/.github/workflows/Umbrella_Sandbox_Setup.yml +++ b/.github/workflows/Umbrella_Sandbox_Setup.yml @@ -47,6 +47,14 @@ jobs: version: v0.20.0 node_image: ${{ env.NODE_IMAGE }} + - name: Enable Ingress in KinD + run: | + kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/deploy-ingress-nginx.yaml + kubectl wait --namespace ingress-nginx \ + --for=condition=ready pod \ + --selector=app.kubernetes.io/component=controller \ + --timeout=90s + - name: Verify Cluster run: | kubectl cluster-info