From b77b73786baaff4e1a19edecf3c7e0983ea0d8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henry=20T=C3=A4schner?= <129834483+HenryT-CG@users.noreply.github.com> Date: Tue, 9 Apr 2024 06:50:35 +0200 Subject: [PATCH] initial setup (#1) --- .github/workflows/build-release.yml | 9 +++++++++ .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/create-release.yml | 7 +++++++ .github/workflows/helm-update-deps.yml | 11 +++++++++++ README.md | 2 +- docs/README.md | 3 +++ helm/Chart.lock | 15 +++++++++++++++ helm/Chart.yaml | 24 ++++++++++++++++++++++++ helm/values.yaml | 13 +++++++++++++ 9 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-release.yml create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/create-release.yml create mode 100644 .github/workflows/helm-update-deps.yml create mode 100644 docs/README.md create mode 100644 helm/Chart.lock create mode 100644 helm/Chart.yaml create mode 100644 helm/values.yaml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..deb5b26 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,9 @@ +name: Build Release +on: + push: + tags: + - '**' +jobs: + release: + uses: onecx/ci-product/.github/workflows/build-release.yml@v1 + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0f0df25 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: Build helm chart + +on: + push: + branches: + - 'main' + - 'fix/[0-9]+.[0-9]+.x' + paths: + - 'helm/**' + +jobs: + helm: + uses: onecx/ci-product/.github/workflows/build.yml@v1 + secrets: inherit + diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..c97eb42 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,7 @@ +name: Create Release Version +on: + workflow_dispatch: +jobs: + release: + uses: onecx/ci-common/.github/workflows/create-release.yml@v1 + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/helm-update-deps.yml b/.github/workflows/helm-update-deps.yml new file mode 100644 index 0000000..2a9e630 --- /dev/null +++ b/.github/workflows/helm-update-deps.yml @@ -0,0 +1,11 @@ +name: Update helm chart dependencies + +on: + workflow_dispatch: + repository_dispatch: + types: [helm-update-deps] + +jobs: + update: + uses: onecx/ci-product/.github/workflows/helm-update-deps.yml@v1 + secrets: inherit diff --git a/README.md b/README.md index 3d3908d..9eed3d8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # onecx-welcome -OneCX Welcome Management Product +OneCX Welcome Product diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..c6ed57e --- /dev/null +++ b/docs/README.md @@ -0,0 +1,3 @@ + +How to: +https://onecx.github.io/docs/guides/current/documentation/setup/product.html \ No newline at end of file diff --git a/helm/Chart.lock b/helm/Chart.lock new file mode 100644 index 0000000..971c8a0 --- /dev/null +++ b/helm/Chart.lock @@ -0,0 +1,15 @@ +dependencies: +- name: helm-product + repository: oci://ghcr.io/onecx/charts + version: 0.1.0 +- name: onecx-welcome-svc + repository: oci://ghcr.io/onecx/charts + version: 0.0.0-rc.11 +- name: onecx-welcome-bff + repository: oci://ghcr.io/onecx/charts + version: 0.0.0-rc.8 +- name: onecx-welcome-ui + repository: oci://ghcr.io/onecx/charts + version: 0.0.0-rc.2 +digest: sha256:c30973a44b8f223992536b8d587e40a74c2ea3fb422b408791879caa31fa0e65 +generated: "2024-04-09T06:45:46.3498718+02:00" diff --git a/helm/Chart.yaml b/helm/Chart.yaml new file mode 100644 index 0000000..8968527 --- /dev/null +++ b/helm/Chart.yaml @@ -0,0 +1,24 @@ +apiversion: v2 +name: onecx-welcome +version: 0.0.0 +appversion: 0.0.0 +dependencies: +- name: helm-product + version: ^0 + repository: oci://ghcr.io/onecx/charts + alias: product +- name: onecx-welcome-svc + version: "*-0" + repository: oci://ghcr.io/onecx/charts + condition: "deployment.svc" + alias: "svc" +- name: onecx-welcome-bff + version: "*-0" + repository: oci://ghcr.io/onecx/charts + condition: "deployment.bff" + alias: "bff" +- name: onecx-welcome-ui + version: "*-0" + repository: oci://ghcr.io/onecx/charts + condition: "deployment.ui" + alias: "ui" diff --git a/helm/values.yaml b/helm/values.yaml new file mode 100644 index 0000000..b370275 --- /dev/null +++ b/helm/values.yaml @@ -0,0 +1,13 @@ +deployment: + svc: true + bff: true + ui: true + +product: + info: + data: + description: "OneCX Welcome" + imageUrl: "" + iconName: "home" + displayName: "OneCX Welcome" + basePath: "/welcome"