Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Action for chart release #55

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Lint and Test Charts

on: pull_request
on:
pull_request:
branches:
- main
paths:
- "**.yaml"
- "**.yml"
- "**.tpl"

# Cancel old builds on new commit for same workflow + branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint-test:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Charts

on:
push:
branches:
- main
paths:
- "**.yaml"
- "**.yml"
- "**.tpl"
# Exclude build index.yaml from being collected into action
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exclusion looks redundant, since GITHUB_TOKEN does not recursively call the same action. More information needed.

- "!index.yaml"

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
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: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
with:
pages_branch: main
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 0 additions & 13 deletions build.sh

This file was deleted.

Binary file added build/supabase-0.1.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/supabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# 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
Expand Down
12 changes: 11 additions & 1 deletion index.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
apiVersion: v1
entries:
supabase:
- apiVersion: v2
created: "2024-04-14T19:27:50.497490176+08:00"
description: The open source Firebase alternative.
digest: 4d692308bc3365c9e8d8dcf9ff3332b090f4f167744d60b05e9bec31c26ab4b1
icon: https://avatars.githubusercontent.com/u/54469796?s=280&v=4
name: supabase
type: application
urls:
- https://supabase-community.github.io/supabase-kubernetes/build/supabase-0.1.0.tgz
version: 0.1.0
- apiVersion: v2
created: "2023-02-10T15:04:18.116554-05:00"
description: The open source Firebase alternative.
Expand Down Expand Up @@ -28,4 +38,4 @@ entries:
urls:
- https://supabase-community.github.io/supabase-kubernetes/build/supabase-0.0.1.tgz
version: 0.0.1
generated: "2023-02-10T15:04:18.110189-05:00"
generated: "2024-04-14T19:27:50.497490176+08:00"
Loading