Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Move deploy/helm to charts/gubernator, add automatic Helm repository …
Browse files Browse the repository at this point in the history
…regeneration to the on-release action
  • Loading branch information
pzduniak committed Apr 28, 2022
1 parent c2cc795 commit e1d54a6
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 6 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
uses: actions/checkout@v2

- name: Update 'version' file
run: echo "${{ github.event.release.tag_name }}" > version
run: |
export VERSION="${{ github.event.release.tag_name }}"
echo "$VERSION" > version
sed -i "s/^version:.*$/version: ${VERSION:1}/" charts/gubernator/Chart.yaml
sed -i "s/^appVersion:.*$/appVersion: ${VERSION:1}/" charts/gubernator/Chart.yaml
# Buildx Needs QEMU
- name: Set up QEMU
Expand Down Expand Up @@ -47,4 +51,10 @@ jobs:
default_author: github_actions
message: 'Update version number'
branch: master
add: 'version'
add: '["version", "charts/gubernator/Chart.yaml"]'

# Publish the Helm chart
- name: Publish Helm chart
uses: stefanprodan/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
6 changes: 3 additions & 3 deletions deploy/helm/Chart.yaml → charts/gubernator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
name: helm
name: gubernator
description: A Helm Chart for gubernator

type: application

version: 1.0.0
version: 2.0.0-rc.19

appVersion: "1.0.0"
appVersion: 2.0.0-rc.19
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "gubernator.fullname" . }}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e1d54a6

Please sign in to comment.