From bc756a1e72096d485eb29d5a74a46e9c449e2b6e Mon Sep 17 00:00:00 2001 From: Arturo Reuschenbach Puncernau Date: Wed, 26 Jun 2024 15:09:26 +0200 Subject: [PATCH 1/4] add built wiht juno badge to the dashboard --- apps/dashboard/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dashboard/README.md b/apps/dashboard/README.md index 31cb95eb2..aebc0f98c 100644 --- a/apps/dashboard/README.md +++ b/apps/dashboard/README.md @@ -1,5 +1,6 @@ # Global Dashboard [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) +[![Built with Juno](https://cloudoperators.github.io/juno/built-with-juno.svg)](https://github.com/cloudoperators/juno) This app implements the global landing apge for Converged Cloud (CC). It offers a region and domain selection so that the user can navigate directly to the CC Dashboard in the desired region. From 2e88c4b82703b0ccdd0d4bba98d3c037c910b2f4 Mon Sep 17 00:00:00 2001 From: Arturo Reuschenbach Puncernau Date: Wed, 26 Jun 2024 15:09:49 +0200 Subject: [PATCH 2/4] test pipeline with workflows from cloudoperators --- .github/workflows/ci-npm-packages.yaml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci-npm-packages.yaml diff --git a/.github/workflows/ci-npm-packages.yaml b/.github/workflows/ci-npm-packages.yaml new file mode 100644 index 000000000..2e668921b --- /dev/null +++ b/.github/workflows/ci-npm-packages.yaml @@ -0,0 +1,36 @@ +# Run it locally with act +# 1. Install act: +# `brew install act` +# 2. Create a .secret file with the following content: +# `GITHUB_TOKEN=your_github_token` +# PULL REQUEST +# 1. Create a act_pull_request.json file in case of a pull request with the following content: +# `{"pull_request": {"number": , "head": {"ref": "", "sha": "PR commit sha"}, "base": {"ref": "main"}}, "repository": {"name": "juno", "owner": {"login": "cloudoperators"}}}` +# 2. Run the following command: +# `act pull_request --container-architecture linux/amd64 -P default=catthehacker/ubuntu:act-latest -j run-pipeline -e act_pull_request.json -W .github/workflows/ci-npm-packages.yaml` + +name: Detect NPM Package Changes and trigger Pipeline + +on: + pull_request: + types: [opened, synchronize, reopened] + paths: + - "apps/**" + +jobs: + run-detect-changes: + uses: cloudoperators/juno/.github/workflows/check-changes-npm-package.yaml@main + with: + paths: "apps" + + run-pipeline: + needs: [run-detect-changes] + strategy: + matrix: + change: ${{fromJson(needs.run-detect-changes.outputs.changes)}} + node: [20.x] + fail-fast: false # Allow other jobs to continue if one fails + uses: cloudoperators/juno/.github/workflows/pipeline-npm-package.yaml@main + with: + path: ${{ matrix.change }} + node: "${{ matrix.node }}" From 3f2b62a1abff7b6e73d26731fc21294b99ae0160 Mon Sep 17 00:00:00 2001 From: Arturo Reuschenbach Puncernau Date: Wed, 26 Jun 2024 16:13:07 +0200 Subject: [PATCH 3/4] use runs-on flag to ubuntu-latest --- .github/workflows/ci-npm-packages.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-npm-packages.yaml b/.github/workflows/ci-npm-packages.yaml index 2e668921b..6883e7462 100644 --- a/.github/workflows/ci-npm-packages.yaml +++ b/.github/workflows/ci-npm-packages.yaml @@ -22,6 +22,7 @@ jobs: uses: cloudoperators/juno/.github/workflows/check-changes-npm-package.yaml@main with: paths: "apps" + runs-on: "ubuntu-latest" run-pipeline: needs: [run-detect-changes] @@ -34,3 +35,4 @@ jobs: with: path: ${{ matrix.change }} node: "${{ matrix.node }}" + runs-on: "ubuntu-latest" From 7017a4114cb23c4c03937543bb1c5c159b9138bf Mon Sep 17 00:00:00 2001 From: Arturo Reuschenbach Puncernau Date: Wed, 26 Jun 2024 16:15:49 +0200 Subject: [PATCH 4/4] set private to false --- apps/dashboard/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 85e58ad4a..9dc8a7c0f 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -7,7 +7,7 @@ ], "repository": "https://github.com/sapcc/juno/tree/main/apps/dashboard", "license": "Apache-2.0", - "private": true, + "private": false, "source": "src/index.js", "module": "build/index.js", "devDependencies": {