Merge pull request 'chore: move .github folder to .gitea for Gitea compatibility' (#1) from far-133/move-github-to-gitea into main
Reviewed-on: #1 Reviewed-by: Chris Farhood <3+cpfarhood@noreply.git.farh.net>
This commit was merged in pull request #1.
This commit is contained in:
@@ -7,16 +7,17 @@ on:
|
|||||||
- 'charts/hightower/**'
|
- 'charts/hightower/**'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Lint, package & push OCI
|
name: Lint, package & publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: runners-farhoodlabs
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
|
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
|
||||||
@@ -29,13 +30,24 @@ jobs:
|
|||||||
mkdir -p .helm-packages
|
mkdir -p .helm-packages
|
||||||
helm package charts/hightower -d .helm-packages
|
helm package charts/hightower -d .helm-packages
|
||||||
|
|
||||||
- name: Log in to Gitea OCI registry
|
- name: Checkout gh-pages
|
||||||
run: |
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
echo "${{ secrets.REGISTRY_TOKEN }}" | helm registry login git.farh.net \
|
with:
|
||||||
--username gitea-admin \
|
ref: gh-pages
|
||||||
--password-stdin
|
path: gh-pages
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Push chart to Gitea OCI registry
|
- name: Update Helm repo index
|
||||||
run: |
|
run: |
|
||||||
PACKAGE=$(ls .helm-packages/*.tgz | head -1)
|
cp .helm-packages/*.tgz gh-pages/
|
||||||
helm push "$PACKAGE" oci://git.farh.net/farhoodlabs/charts
|
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
|
||||||
|
|||||||
@@ -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`
|
**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
|
## Package Installation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user