From c1a0e0aedf3c6f367ca0d48fcbeee2bee759308f Mon Sep 17 00:00:00 2001 From: Musa Misto Date: Tue, 31 Mar 2026 15:35:23 +0300 Subject: [PATCH 1/2] feat: add CI/CD workflow for Bitween UI --- .github/workflows/ui-cicd.yml | 38 +++++++++++++++++++++++++++++++++++ azure-pipelines.yml | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ui-cicd.yml diff --git a/.github/workflows/ui-cicd.yml b/.github/workflows/ui-cicd.yml new file mode 100644 index 0000000..ff573ed --- /dev/null +++ b/.github/workflows/ui-cicd.yml @@ -0,0 +1,38 @@ +name: Bitween UI CI/CD + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: write + packages: write + +jobs: + deploy-main: + if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} + uses: simplify9/.github/.github/workflows/sw-cicd.yml@main + with: + major-version: '8' + minor-version: '1' + dockerfile-path: './Dockerfile' + docker-context: '.' + docker-platforms: 'linux/amd64' + chart-name: 'bitweenui' + chart-path: './chart' + deploy-to-development: true + development-namespace: 'playground' + container-registry: 'ghcr.io' + image-name: 'simplify9/bitweenui' + helm-set-values: 'ingress.enabled=true,ingress.host=app-dev.bitween.io,ingress.tlsSecret=bitween-tls,ingress.annotations.cert-manager\.io/cluster-issuer=letsencrypt-nginx' + secrets: + # Container registry (using GitHub packages) + registry-username: ${{ github.actor }} + registry-password: ${{ secrets.GITHUB_TOKEN }} + kubeconfig: ${{ secrets.S9DEV_KUBECONFIG }} + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3c31cc9..8badeb1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ variables: - name: version value: $[format('8.0.{0}', counter('8.0', 0))] -stages: +stages: - stage: Build displayName: Build and push image @@ -30,7 +30,7 @@ stages: command: buildAndPush repository: simplify9/$(imageName) dockerfile: '$(Build.SourcesDirectory)/Dockerfile' - containerRegistry: simplify9cr + containerRegistry: tags: | $(version) latest From 8f58f4bcf07fd455d7c6a101dab1a588fef5d836 Mon Sep 17 00:00:00 2001 From: Musa Misto Date: Tue, 31 Mar 2026 15:36:08 +0300 Subject: [PATCH 2/2] adad --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8badeb1..3c31cc9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ variables: - name: version value: $[format('8.0.{0}', counter('8.0', 0))] -stages: +stages: - stage: Build displayName: Build and push image @@ -30,7 +30,7 @@ stages: command: buildAndPush repository: simplify9/$(imageName) dockerfile: '$(Build.SourcesDirectory)/Dockerfile' - containerRegistry: + containerRegistry: simplify9cr tags: | $(version) latest