mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 18:16:55 +00:00
a96cef6cb5
* fix: docker.yml * feat: add helm chart config * fix: helm config * feat: add .github workflow for helm chart --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
37 lines
968 B
YAML
37 lines
968 B
YAML
name: Publish Helm Chart
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
GH_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
publish-helm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v4
|
|
|
|
- name: Package Helm chart
|
|
run: |
|
|
mkdir -p ./helm-packages
|
|
helm package helm \
|
|
--version ${{ inputs.version }} \
|
|
--app-version ${{ inputs.version }} \
|
|
--destination ./helm-packages
|
|
|
|
- name: Authenticate to GitHub Packages
|
|
run: |
|
|
echo "${{ secrets.GH_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Push Helm chart to GitHub Packages (OCI)
|
|
run: |
|
|
helm push ./helm-packages/portabase-agent-${{ inputs.version }}.tgz oci://ghcr.io/portabase/charts |