diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.gitea/ISSUE_TEMPLATE/bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.yml rename to .gitea/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.gitea/ISSUE_TEMPLATE/feature_request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.yml rename to .gitea/ISSUE_TEMPLATE/feature_request.yml diff --git a/.gitea/workflows/helm-release.yml b/.gitea/workflows/helm-release.yml index e1a3f7a..bd8d615 100644 --- a/.gitea/workflows/helm-release.yml +++ b/.gitea/workflows/helm-release.yml @@ -7,16 +7,17 @@ on: - 'charts/hightower/**' permissions: - contents: read - packages: write + contents: write jobs: release: - name: Lint, package & push OCI - runs-on: ubuntu-latest + name: Lint, package & publish + runs-on: runners-farhoodlabs steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 - name: Install Helm uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0 @@ -29,13 +30,24 @@ jobs: mkdir -p .helm-packages helm package charts/hightower -d .helm-packages - - name: Log in to Gitea OCI registry - run: | - echo "${{ secrets.REGISTRY_TOKEN }}" | helm registry login git.farh.net \ - --username gitea-admin \ - --password-stdin + - name: Checkout gh-pages + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: gh-pages + path: gh-pages + fetch-depth: 0 - - name: Push chart to Gitea OCI registry + - name: Update Helm repo index run: | - PACKAGE=$(ls .helm-packages/*.tgz | head -1) - helm push "$PACKAGE" oci://git.farh.net/farhoodlabs/charts + cp .helm-packages/*.tgz gh-pages/ + helm repo index gh-pages --url https://farhoodlabs.github.io/hightower + + - name: Push to gh-pages + run: | + cd gh-pages + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git diff --staged --quiet && echo "No changes to commit" && exit 0 + git commit -m "Release Helm chart $(ls *.tgz | head -1)" + git push diff --git a/CLAUDE.md b/CLAUDE.md index 2766358..f8da721 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -158,7 +158,7 @@ Comments must be **timeless** — no references to this conversation, refactorin **Config:** `Dockerfile`, `apps/worker/configs/`, `apps/worker/prompts/`, `tsconfig.base.json` (shared compiler options), `turbo.json`, `biome.json` -**CI/CD:** `.github/workflows/ci.yml` (type-check, lint, build & push images to GHCR), `.github/workflows/release.yml` (Docker Hub push + GitHub release, manual dispatch) +**CI/CD:** `.gitea/workflows/ci.yml` (type-check, lint, build & push images to GHCR), `.gitea/workflows/release.yml` (Docker Hub push + GitHub release, manual dispatch) ## Package Installation