diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 21accb8..16e076e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: Release Helm Chart +name: Helm Chart Release on: push: branches: @@ -18,7 +18,16 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Run Helm Chart Releaser + - name: Helm Chart Releaser uses: helm/chart-releaser-action@v1.5.0 env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Build and Push Helm Chart to GitHub Container Registry + run: | + cd charts/cluster-templates + helm package . + ls -la + echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u rancherfederal --password-stdin + export CHART_VERSION=$(grep 'version:' Chart.yaml | tail -n1 | awk '{ print $2}') + helm push rancher-cluster-templates-${CHART_VERSION}.tgz oci://ghcr.io/rancherfederal \ No newline at end of file diff --git a/charts/cluster-templates/README.md b/charts/cluster-templates/README.md index 4ba92e0..bc848ce 100644 --- a/charts/cluster-templates/README.md +++ b/charts/cluster-templates/README.md @@ -28,6 +28,12 @@ helm repo add cluster-templates https://rancherfederal.github.io/rancher-cluster helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-default -f values.yaml ``` +```bash +helm upgrade -i cluster oci://ghcr.io/rancherfederal/rancher-cluster-templates -n fleet-default -f values.yaml +``` + +## Helm Chart Deployment Status + ```bash helm status cluster -n fleet-default ``` @@ -50,7 +56,7 @@ helm delete cluster -n fleet-default - [Digital Ocean (TBD)](https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/values-digitalocean.yaml) - [VMWare vSphere (TBD)](https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/values-vsphere.yaml) -## Secrets Management +## Chart/Cluster Secrets Management ### Cloud Credentials diff --git a/charts/cluster-templates/app-readme.md b/charts/cluster-templates/app-readme.md index 4ba92e0..bc848ce 100644 --- a/charts/cluster-templates/app-readme.md +++ b/charts/cluster-templates/app-readme.md @@ -28,6 +28,12 @@ helm repo add cluster-templates https://rancherfederal.github.io/rancher-cluster helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-default -f values.yaml ``` +```bash +helm upgrade -i cluster oci://ghcr.io/rancherfederal/rancher-cluster-templates -n fleet-default -f values.yaml +``` + +## Helm Chart Deployment Status + ```bash helm status cluster -n fleet-default ``` @@ -50,7 +56,7 @@ helm delete cluster -n fleet-default - [Digital Ocean (TBD)](https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/values-digitalocean.yaml) - [VMWare vSphere (TBD)](https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/values-vsphere.yaml) -## Secrets Management +## Chart/Cluster Secrets Management ### Cloud Credentials