Skip to content

Commit

Permalink
Merge pull request #24 from damsien/dev
Browse files Browse the repository at this point in the history
Add helm chart releaser for forks
  • Loading branch information
damsien authored Oct 27, 2024
2 parents becad7a + e53834a commit 103bc8e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/helm-chart-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: Release charts

on:
push:
branches:
- dev
tags:
- '*'

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
if: |
(github.event.repository.fork == true && github.ref == 'refs/heads/dev') ||
(github.event.repository.fork == false && startsWith(github.ref, 'refs/tags/'))
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -27,10 +32,12 @@ jobs:
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
config: charts/release_config.yml
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing guidelines

Please refer to [this](https://github.com/syngit-org/syngit/wiki/Contribute) wiki page.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# syngit

syngit is a Kubernetes operator that allows you to push resources on a git repository and manage their lifecycle. It leverage the gitops by unifying the source of truth between your cluster and your git repository. It acts as a proxy between your client tool (`kubectl` or any UI) and the cluster.
syngit is a Kubernetes operator that allows you to push resources on a git repository and manage their lifecycle. It leverage the gitops by unifying the source of truth between your cluster and your git repository. It acts as a proxy between your client tool (`kubectl`, `oc` or any UI) and the cluster.

![syngit-proxy](./img/wiki/conception/commitonly-proxy.png)

Expand Down
1 change: 1 addition & 0 deletions charts/release_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release-name-template: "{{ .Version }}"

0 comments on commit 103bc8e

Please sign in to comment.