-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor updates and added support for pulling from ghcr
- Loading branch information
1 parent
a534ac9
commit 0456c4f
Showing
6 changed files
with
158 additions
and
116 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Release Charts | ||
|
||
name: Release, Build, and Push Chart | ||
on: | ||
push: | ||
branches: | ||
|
@@ -9,17 +8,44 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
- name: Run Helm Chart Releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Setup Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
- name: Package Helm Chart | ||
run: | | ||
cd charts/cluster-templates | ||
helm package . | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Get Chart Information | ||
id: chart_info | ||
run: | | ||
chart_file=$(find . -name '*.tgz' -type f) | ||
chart_filename=${chart_file##*/} | ||
chart_tag=${chart_filename##*-} | ||
chart_tag=${chart_tag%.tgz} | ||
echo ::set-output name=chart_filename::$chart_filename | ||
echo ::set-output name=chart_tag::$chart_tag | ||
- name: Log into GitHub Container Registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | ||
|
||
- name: Push Helm Chart Release to GitHub Container Registry | ||
run: | | ||
docker tag ${{ steps.chart_info.outputs.chart_filename }} ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${{ steps.chart_info.outputs.chart_tag }} | ||
docker push ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${{ steps.chart_info.outputs.chart_tag }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
apiVersion: v2 | ||
name: rancher-cluster-templates | ||
description: RGS - Hardened Rancher Cluster Templates | ||
description: Rancher Cluster Templates - Hardened by Rancher Government Solutions (RGS) | ||
icon: https://raw.githubusercontent.com/rancherfederal/carbide-docs/main/static/img/carbide-logo.svg | ||
type: application | ||
version: 0.3.1 | ||
appVersion: 0.3.1 | ||
version: 0.3.2 | ||
appVersion: 0.3.2 | ||
annotations: | ||
catalog.cattle.io/type: cluster-template | ||
catalog.cattle.io/namespace: fleet-default |
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.