You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: publish showcase Helm chart to GitHub Pages via chart-releaser
Add a chart-releaser workflow that publishes index.yaml and packaged charts to gh-pages when Chart.yaml version bumps on main, alongside the existing GHCR OCI publish path.
Co-authored-by: Cursor <cursoragent@cursor.com>
**Triggers:** Push to **`main`** when **`charts/showcase/**`** (or the workflow) changes; **`workflow_dispatch`**.
123
+
124
+
Packages **`charts/showcase`** and pushes to **`oci://ghcr.io/bcgov/bc-wallet-showcase-chart`**. Does not require a chart version bump (overwrites the OCI tag for the packaged version).
**Triggers:** Push to **`main`** when **`charts/showcase/**`** (or the workflow) changes; **`workflow_dispatch`**.
134
+
135
+
Runs **chart-releaser** when **`charts/showcase/Chart.yaml`** **`version`** is new: creates a GitHub Release, packages the chart (with vendored dependencies), and updates **`index.yaml`** on the **`gh-pages`** branch.
Copy file name to clipboardExpand all lines: charts/showcase/README.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,34 @@ helm dependency update
17
17
18
18
## Install
19
19
20
+
### From the GitHub Pages Helm repo (recommended)
21
+
22
+
Published merges to **`main`** that bump **`charts/showcase/Chart.yaml`****`version`** are released via **chart-releaser** to the **`gh-pages`** branch (see **`.github/workflows/helm-release-showcase.yaml`**). Enable **GitHub Pages** on the repository (**Settings → Pages → Deploy from branch `gh-pages` / root**) before the first release.
The same chart is also pushed to **`oci://ghcr.io/bcgov/bc-wallet-showcase-chart`** on **`main`** when chart files change (see **`.github/workflows/helm-publish-showcase.yaml`**).
### OpenShift / BC Gov Silver (recommended overlay)
21
49
22
50
Use **`deploy/showcase/values-dev.yaml`** for the shared **dev** overlay (ingress, route timeouts, optional auto-secrets, NetworkPolicy, public dev URL). Copy or override for other namespaces or hostnames.
@@ -122,6 +150,6 @@ Quick **public** checks (replace host with yours): **`curl -i`** to **`…/serve
122
150
123
151
## CI
124
152
125
-
PRs touching **`charts/showcase/**`** or **`deploy/showcase/**`** run **`helm dependency update`**, **`helm lint`** (default values, **`deploy/showcase/values-dev.yaml`**, and **`deploy/showcase/values-pr.yaml`**), and **`helm template`** (see **`.github/workflows/helm-lint-showcase.yaml`**). Merges to **`main`** can run **`Deploy showcase (dev)`** when repository variables and a token secret are configured (see **`.github/workflows/deploy-showcase-dev.yaml`**).
153
+
PRs touching **`charts/showcase/**`** or **`deploy/showcase/**`** run **`helm dependency update`**, **`helm lint`** (default values, **`deploy/showcase/values-dev.yaml`**, and **`deploy/showcase/values-pr.yaml`**), and **`helm template`** (see **`.github/workflows/helm-lint-showcase.yaml`**). Merges to **`main`**with a bumped chart **`version`** publish to **GitHub Pages** (**`.github/workflows/helm-release-showcase.yaml`**) and to **GHCR OCI** (**`.github/workflows/helm-publish-showcase.yaml`**). Merges to **`main`**can run **`Deploy showcase (dev)`** when repository variables and a token secret are configured (see **`.github/workflows/deploy-showcase-dev.yaml`**).
126
154
127
155
**PR environments** (bcgov repo only): **`.github/workflows/deploy-showcase-pr.yaml`** builds and pushes **`ghcr.io/bcgov/bc-wallet-showcase-{server,frontend}:pr-<N>`**, then **`helm upgrade --install pr-<N>-showcase`** with **`deploy/showcase/values-pr.yaml`**. Public URL uses workflow default host suffix **`bc-wallet-showcase-dev.apps.silver.devops.gov.bc.ca`** (override with repository variable **`SHOWCASE_PR_HOST_SUFFIX`** if needed). Requires OpenShift secrets **`OPENSHIFT_SERVER`**, **`OPENSHIFT_TOKEN`**, **`OPENSHIFT_DEV_NAMESPACE`**. **`.github/workflows/undeploy-showcase-pr.yaml`** runs on PR close to **`helm uninstall`** and delete labeled **`Secret`**/**`PVC`**.
0 commit comments