diff --git a/.github/workflows/helm-chart-releaser.yml b/.github/workflows/helm-chart-releaser.yml index 58bbae3..1cdc36c 100644 --- a/.github/workflows/helm-chart-releaser.yml +++ b/.github/workflows/helm-chart-releaser.yml @@ -2,6 +2,8 @@ name: Release charts on: push: + branches: + - dev tags: - '*' @@ -9,6 +11,9 @@ 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 @@ -27,10 +32,12 @@ jobs: uses: azure/setup-helm@v4 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 with: charts_dir: charts + config: charts/release_config.yml + skip_existing: true env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..c399b08 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contributing guidelines + +Please refer to [this](https://github.com/syngit-org/syngit/wiki/Contribute) wiki page. \ No newline at end of file diff --git a/README.md b/README.md index 63d50dc..8673c34 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/charts/release_config.yml b/charts/release_config.yml new file mode 100644 index 0000000..4114250 --- /dev/null +++ b/charts/release_config.yml @@ -0,0 +1 @@ +release-name-template: "{{ .Version }}" \ No newline at end of file