Skip to content

Commit

Permalink
improved github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbradys committed Feb 11, 2024
1 parent 54e8381 commit f18e0f2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 32 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Helm Chart Release
name: Release Helm Chart(s)
on:
push:
branches:
Expand All @@ -18,16 +18,23 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Helm Chart Releaser
uses: helm/chart-releaser-action@v1.5.0
- name: Run Helm Chart Releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Build and Push Helm Chart
- name: Authenticate to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Chart(s) to GHCR
run: |
cd charts/cluster-templates
helm package .
ls -la
echo ${{ secrets.GHCR_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
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts
done
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@

⚠️ This project is still in active development. As we continued to develop it, there will be breaking changes. ⚠️

This project contains the Helm Chart for Rancher Cluster Templates, which provide declaritive manifests to deploy clusters with the [Rancher Multi-Cluster Manager](https://ranchergovernment.com/products/mcm). Please start with the Helm Chart [README](/charts/cluster-templates/README.md)!
This project contains the Helm Chart for Rancher Cluster Templates, which provide declaritive manifests to deploy clusters with the [Rancher Multi-Cluster Manager](https://github.com/rancher/rancher). Please start with the Helm Chart [README](/charts/cluster-templates/README.md)!

## Configuration

### Adding the Helm Chart via CLI:
### Adding the Helm Chart via CLI

```bash
helm repo add cluster-templates https://rancherfederal.github.io/rancher-cluster-templates
helm repo update
```

### Adding the Helm Chart via Rancher Manager:
### Adding the Helm Chart via OCI

```bash
ghcr.io/rancherfederal/charts/rancher-cluster-templates
```

### Adding the Helm Chart via Rancher Manager

1. Authenticate into the Rancher Manager UI
2. Open the local cluster or downstream cluster
Expand Down
18 changes: 9 additions & 9 deletions charts/cluster-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

### Currently Available

* AWS Commercial
* AWS GovCloud
* Harvester
* Digital Ocean
* Custom
- AWS Commercial
- AWS GovCloud
- Harvester
- Digital Ocean
- Custom

### Pending Development
### Pending Validation

* VMWare vSphere
* Microsoft Azure
- VMWare vSphere
- Microsoft Azure

## Installing the Chart

Expand All @@ -29,7 +29,7 @@ helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-def
```

```bash
helm upgrade -i cluster oci://ghcr.io/rancherfederal/rancher-cluster-templates -n fleet-default -f values.yaml
helm upgrade -i cluster oci://ghcr.io/rancherfederal/charts/rancher-cluster-templates -n fleet-default -f values.yaml
```

## Helm Chart Deployment Status
Expand Down
18 changes: 9 additions & 9 deletions charts/cluster-templates/app-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

### Currently Available

* AWS Commercial
* AWS GovCloud
* Harvester
* Digital Ocean
* Custom
- AWS Commercial
- AWS GovCloud
- Harvester
- Digital Ocean
- Custom

### Pending Development
### Pending Validation

* VMWare vSphere
* Microsoft Azure
- VMWare vSphere
- Microsoft Azure

## Installing the Chart

Expand All @@ -29,7 +29,7 @@ helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-def
```

```bash
helm upgrade -i cluster oci://ghcr.io/rancherfederal/rancher-cluster-templates -n fleet-default -f values.yaml
helm upgrade -i cluster oci://ghcr.io/rancherfederal/charts/rancher-cluster-templates -n fleet-default -f values.yaml
```

## Helm Chart Deployment Status
Expand Down

0 comments on commit f18e0f2

Please sign in to comment.