mirror of
https://github.com/mastodon/chart
synced 2025-05-18 13:03:21 +00:00
Merge 5805280bd7
into 69df6394ae
This commit is contained in:
commit
97c3141314
30
.github/workflows/release-chart.yaml
vendored
Normal file
30
.github/workflows/release-chart.yaml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Publish chart as OCI image to GitHub registry. Version is automatically gathered from the tag name.
|
||||||
|
# For this workflow to work, GITHUB_TOKEN needs to be configured with write permissions.
|
||||||
|
# Additionally, the repository must be granted access in the package settings.
|
||||||
|
|
||||||
|
name: Publish chart
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ released ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Publish chart to OCI registry
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Helm login
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.GITHUB_TOKEN }}" | \
|
||||||
|
helm registry login ghcr.io \
|
||||||
|
--username "$GITHUB_REPOSITORY_OWNER" \
|
||||||
|
--password-stdin
|
||||||
|
- name: Helm package
|
||||||
|
run: |
|
||||||
|
helm package . -u --version "${GITHUB_REF_NAME#v}"
|
||||||
|
- name: Helm push
|
||||||
|
run: |
|
||||||
|
helm push \
|
||||||
|
"mastodon-${GITHUB_REF_NAME#v}.tgz" \
|
||||||
|
"oci://ghcr.io/$GITHUB_REPOSITORY_OWNER/charts"
|
|
@ -12,10 +12,10 @@ description: Mastodon is a free, open-source social network server based on Acti
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time
|
# Chart version is set to 0.0.0 in the source tree. The release pipeline replaces this with the version
|
||||||
# you make changes to the chart and its templates, including the app version.
|
# being released in build time.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Please refer to git tags and/or GitHub releases to check out the latest version.
|
||||||
version: 5.1.1
|
version: 0.0.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|
17
README.md
17
README.md
|
@ -17,6 +17,23 @@ We still encourage suggestions and PRs to help make this chart better, and this
|
||||||
|
|
||||||
Please see the pinned [GitHub issue](https://github.com/mastodon/chart/issues/129) for more info & discussion.
|
Please see the pinned [GitHub issue](https://github.com/mastodon/chart/issues/129) for more info & discussion.
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
This chart is [released as an OCI image](https://helm.sh/docs/topics/registries/) to `ghcr.io/mastodon/charts/mastodon`. You can install it without the need to add any repository to your helm installation using:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
helm install mastodon oci://ghcr.io/mastodon/charts/mastodon --values your-values-file.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also add it as a dependency to another chart in your Chart.yaml:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
dependencies:
|
||||||
|
- name: mastodon
|
||||||
|
version: 4.0.0
|
||||||
|
repository: oci://ghcr.io/mastodon/charts
|
||||||
|
```
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
The variables that _must_ be configured are:
|
The variables that _must_ be configured are:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user