Run-main-26 #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bitween UI CI/CD | |
| run-name: Run-${{ github.ref_name }}-${{ github.run_number }} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| deploy-main: | |
| if: ${{ (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch' }} | |
| 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' | |
| # Azure-style chart flow (ChartMuseum) | |
| chart-publish-method: 'chartmuseum' | |
| chart-repo-url: 'https://charts.sf9.io' | |
| deploy-to-development: true | |
| development-namespace: 'playground' | |
| # Keep Docker image publishing as-is | |
| container-registry: 'docker.io' | |
| image-name: 'simplify9/bitweenui' | |
| helm-set-values: 'image.repo=docker.io/simplify9,ingress.enabled=true,ingress.host=app-dev.bitween.io,ingress.tlsSecret=bitween-tls,ingress.annotations.cert-manager\.io/cluster-issuer=letsencrypt-nginx' | |
| secrets: | |
| # Docker image push credentials | |
| registry-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| # ChartMuseum credentials (same purpose as old CmUser/CmPassword) | |
| chartmuseum-username: ${{ secrets.CM_USER }} | |
| chartmuseum-password: ${{ secrets.CM_PASSWORD }} | |
| kubeconfig: ${{ secrets.S9DEV_KUBECONFIG }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |