- no longer using :latest by default in values.yaml, instead updating version with each release - set chart version to match app version in Chart.yaml - update version in helm chart and values.yaml as part of update-version.sh script - update test.yaml and local-config.yaml to enable using :latest tag images - ci: add ci script for packaging current helm chart - docs: updates docs to indicate deploying directly from GitHub release - docs: add script to fill in latest version for 'VERSION' using custom script - chart: set local_service_port to 30870 by default, but use only if no ingress. - default values.yaml set up for local deployment, local-config.yaml contains additional commented out examples - ci draft: add deployment info to draft with helm install command for current version - test: fix password check test
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Publish Helm Chart
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
package_chart:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v3
|
|
with:
|
|
version: 3.10.2
|
|
|
|
- name: Package Chart
|
|
run: |
|
|
mkdir .chart-out
|
|
helm package chart/ --destination .chart-out
|
|
|
|
- name: Get Version
|
|
run: |
|
|
echo "version=$(cat version.txt)" >> "$GITHUB_ENV"
|
|
|
|
- name: Upload Chart To GitHub
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
body: |
|
|
## Deployment
|
|
|
|
This release can be deployed with Helm by running:
|
|
|
|
```
|
|
helm upgrade --install btrix https://github.com/webrecorder/browsertrix-cloud/releases/download/v${{ env.version }}/browsertrix-cloud-${{ env.version }}.tgz
|
|
```
|
|
|
|
See [the development guide](https://docs.browsertrix.cloud/deploy/) for more info how to deploy Browsertrix Cloud.
|
|
|
|
files: .chart-out/browsertrix-cloud-${{ env.version }}.tgz
|
|
tag_name: v${{ env.version }}
|
|
fail_on_unmatched_files: true
|
|
draft: true
|