Publish Helm chart (#475)
This adds a GH Action to publish the updated Helm chart with each new release. It can also be triggered manually if needed. Fixes #345
This commit is contained in:
@@ -2,7 +2,7 @@ name: pr-helm
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'chart/**'
|
||||
- 'charts/**'
|
||||
- '.github/workflows/pr-helm.yaml'
|
||||
- '.github/scripts/helm-check-expected.sh'
|
||||
- 'tools/ci/helm-values/**'
|
||||
@@ -23,8 +23,8 @@ jobs:
|
||||
helm template \
|
||||
--namespace fleet \
|
||||
--release-name fleet \
|
||||
--values chart/values.yaml \
|
||||
chart \
|
||||
--values charts/fleet/values.yaml \
|
||||
charts/fleet \
|
||||
> helm-temp/output-defaults.yaml
|
||||
- name: helm template -- other configurations
|
||||
run: |
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
--namespace ${REL_NAME} \
|
||||
--release-name ${REL_NAME} \
|
||||
--values ${FILE_PATH} \
|
||||
chart \
|
||||
charts/fleet \
|
||||
> helm-temp/${FILE}
|
||||
done
|
||||
- name: kubeval sanity check
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
name: release-helm
|
||||
on:
|
||||
release:
|
||||
types: [released] # don't trigger on pre-releases
|
||||
workflow_dispatch: # allow manual trigger
|
||||
|
||||
jobs:
|
||||
publish-chart:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: stefanprodan/helm-gh-pages@v1.4.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
charts_dir: charts
|
||||
target_dir: charts
|
||||
linting: off
|
||||
@@ -2,7 +2,7 @@
|
||||
# All settings related to how Fleet is deployed in Kubernetes
|
||||
hostName: fleet.localhost
|
||||
replicas: 3 # The number of Fleet instances to deploy
|
||||
imageTag: 3.6.0 # Version of Fleet to deploy
|
||||
imageTag: 3.9.0 # Version of Fleet to deploy
|
||||
createIngress: true # Whether or not to automatically create an Ingress
|
||||
ingressAnnotations: {} # Additional annotation to add to the Ingress
|
||||
podAnnotations: {} # Additional annotations to add to the Fleet pod
|
||||
@@ -1,6 +1,6 @@
|
||||
# Releasing Fleet
|
||||
|
||||
1. Update the [CHANGELOG](../../CHANGELOG.md) with the changes that have been made since the last Fleet release. Update the NPM [package.json](../../tools/fleetctl-npm/package.json) with the new version number (do not yet `npm publish`). Update the [Helm chart](../../chart/Chart.yaml) with the new version number.
|
||||
1. Update the [CHANGELOG](../../CHANGELOG.md) with the changes that have been made since the last Fleet release. Update the NPM [package.json](../../tools/fleetctl-npm/package.json) with the new version number (do not yet `npm publish`). Update the [Helm chart](../../charts/fleet/Chart.yaml) and [values file](../../charts/fleet/values.yaml) with the new version number.
|
||||
|
||||
Commit these changes via Pull Request and pull the changes on the `master` branch locally. Check that `HEAD` of the `master` branch points to the commit with these changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user