5c7e4d45d4
Gitea 1.26 (PR #36173) honors permissions.packages: write on the auto-provided GITEA_TOKEN, so the PAT workaround is no longer needed. You can delete the REGISTRY_TOKEN org secret. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Helm Chart Release
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'charts/hightower/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
release:
|
|
name: Lint, package & push OCI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
|
|
|
|
- name: Lint chart
|
|
run: helm lint charts/hightower
|
|
|
|
- name: Package chart
|
|
run: |
|
|
mkdir -p .helm-packages
|
|
helm package charts/hightower -d .helm-packages
|
|
|
|
- name: Log in to Gitea OCI registry
|
|
run: |
|
|
echo "${{ secrets.GITEA_TOKEN }}" | helm registry login git.farh.net \
|
|
--username "${{ github.actor }}" \
|
|
--password-stdin
|
|
|
|
- name: Push chart to Gitea OCI registry
|
|
run: |
|
|
PACKAGE=$(ls .helm-packages/*.tgz | head -1)
|
|
helm push "$PACKAGE" oci://git.farh.net/farhoodlabs/charts
|