-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test & release with GitHub actions (#26)
* feat: GitHub actions, closes #25
- Loading branch information
1 parent
b4810d6
commit 6c03508
Showing
8 changed files
with
91 additions
and
50 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pages-index-path: docs/index.yaml | ||
generate-release-notes: true | ||
skip-existing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test Charts | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
paths: | ||
- "sickhub/**" | ||
- ".github/workflows/**" | ||
|
||
jobs: | ||
test: | ||
name: Test Helm Chart | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --chart-dirs sickhub --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
ct lint --chart-dirs sickhub --all | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
if: github.ref == 'refs/heads/master' || steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) | ||
id: chart-install | ||
run: ct install --chart-dirs sickhub --remote origin --all | ||
if: github.ref == 'refs/heads/master' || steps.list-changed.outputs.changed == 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release Charts | ||
on: | ||
workflow_run: | ||
workflows: | ||
- "Test Charts" | ||
branches: | ||
- master | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
name: Publish Helm Chart | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Configure Helm repositories | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
config: .github/cr-config.yaml | ||
charts_dir: sickhub | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters