Skip to content

Commit

Permalink
Merge pull request #27 from morremeyer/test/ct-lint
Browse files Browse the repository at this point in the history
test/docs/feat: add Metadata, automatic linting and versioning documentation
  • Loading branch information
JC5 authored Feb 19, 2022
2 parents b003e94 + 4c3ff69 commit 7671646
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,41 @@
name: Release charts
name: Lint and release charts

on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v1
with:
# renovate: datasource=github-releases depName=helm/helm
version: v3.8.0

- uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.0

- name: Run chart-testing (lint)
run: ct lint --config ct.yaml


release:
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- lint
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
12 changes: 12 additions & 0 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,15 @@ Note that if you use the firefly-iii-stack chart, you'll have to put the values
## Development and testing

For the firefly-iii-stack chart, you need to [override the chart dependencies locally](firefly-iii-stack/README.md#dependency-chart-overrides) to develop it on your machine.

### Versioning

Helm charts use semantic versioning. For the charts in this repository, we only use the `[MAJOR].[MINOR].[PATCH]` syntax without any pre-releases.

Please bump as follows:

* Major version for breaking changes (this includes updates of default values as users may need to manually update their values)
* Minor version when you add features
* Patch version for bug fixes and documentation updates

For the automatic releasing and linting to work, do not manually update the `firefly-iii-stack` to use new dependency versions in the same PR as this will fail validation and releasing.
8 changes: 7 additions & 1 deletion charts/firefly-db/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
apiVersion: v2
name: firefly-db
version: 0.0.5
description: Installs a postgres db for Firefly III
version: 0.0.4
type: application
sources:
- https://github.com/firefly-iii/kubernetes/tree/main/charts/firefly-db
maintainers:
- name: morre
email: firefly-iii@mor.re
10 changes: 9 additions & 1 deletion charts/firefly-iii-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: v2
name: firefly-iii-stack
version: 0.5.1
description: Installs Firefly III stack (db, app, importer)
version: 0.5.0
type: application
dependencies:
- name: firefly-db
version: 0.0.4
Expand All @@ -15,3 +16,10 @@ dependencies:
version: 1.1.1
condition: importer.enabled
repository: https://firefly-iii.github.io/kubernetes/
home: https://github.com/firefly-iii/kubernetes
sources:
- https://github.com/firefly-iii/kubernetes
maintainers:
- name: morre
email: firefly-iii@mor.re
icon: https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.github/assets/img/logo-small.png
9 changes: 8 additions & 1 deletion charts/firefly-iii/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
apiVersion: v2
name: firefly-iii
version: 1.0.2
description: Installs Firefly III
type: application
version: 1.0.1
home: https://www.firefly-iii.org/
sources:
- https://github.com/firefly-iii/firefly-iii/
maintainers:
- name: morre
email: firefly-iii@mor.re
icon: https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.github/assets/img/logo-small.png
9 changes: 8 additions & 1 deletion charts/importer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
apiVersion: v2
name: importer
version: 1.1.2
description: Deploys the importer chart for Firefly III
type: application
version: 1.1.1
home: https://www.firefly-iii.org/
sources:
- https://github.com/firefly-iii/data-importer
maintainers:
- name: morre
email: firefly-iii@mor.re
icon: https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.github/assets/img/logo-small.png
5 changes: 5 additions & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See https://github.com/helm/chart-testing#configuration
remote: origin
target-branch: main
chart-dirs:
- charts

0 comments on commit 7671646

Please sign in to comment.