Files
trebuchet/.gitea/workflows/helm-release.yml
T
Chris Farhood 5c7e4d45d4
CI / Type-check & lint (push) Successful in 15s
CI / Build & push worker image (push) Failing after 8s
CI / Build & push API image (push) Failing after 8s
ci: revert to auto GITEA_TOKEN for registry auth
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>
2026-05-16 21:02:41 -04:00

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