ci: default registry and gitops clone URL to https://git.holtlabs.xyz (Plan 14)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Noah Holt 2026-11-11 13:50:23 -06:00
parent 0e42bb84b9
commit 4606b16996
3 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ actions, not reusable workflows: Forgejo LTS 11 does not support
- `lint-checks` — prettier + eslint + conventional-commit checks (each - `lint-checks` — prettier + eslint + conventional-commit checks (each
`--if-present`/config-gated); run after `node-checks` in the same job `--if-present`/config-gated); run after `node-checks` in the same job
- `build-push` — docker build + push to the Forgejo registry - `build-push` — docker build + push to the Forgejo registry
(`git.lab.holtlabs.xyz`), tags `<short-sha>` + `latest` (`git.holtlabs.xyz`), tags `<short-sha>` + `latest`
- `gitops-bump` — set the image tag in `nholtware/gitops` via - `gitops-bump` — set the image tag in `nholtware/gitops` via
`kustomize edit set image`; ArgoCD deploys from there `kustomize edit set image`; ArgoCD deploys from there
@ -23,19 +23,19 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/node-checks@v1 - uses: https://git.holtlabs.xyz/nholtware/workflows/node-checks@v1
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/lint-checks@v1 - uses: https://git.holtlabs.xyz/nholtware/workflows/lint-checks@v1
deploy: deploy:
needs: checks needs: checks
runs-on: host runs-on: host
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/build-push@v1 - uses: https://git.holtlabs.xyz/nholtware/workflows/build-push@v1
with: with:
app-name: my-app app-name: my-app
registry-user: ${{ secrets.REGISTRY_USER }} registry-user: ${{ secrets.REGISTRY_USER }}
registry-token: ${{ secrets.REGISTRY_TOKEN }} registry-token: ${{ secrets.REGISTRY_TOKEN }}
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/gitops-bump@v1 - uses: https://git.holtlabs.xyz/nholtware/workflows/gitops-bump@v1
with: with:
app-name: my-app app-name: my-app
gitops-token: ${{ secrets.GITOPS_TOKEN }} gitops-token: ${{ secrets.GITOPS_TOKEN }}

View file

@ -20,7 +20,7 @@ inputs:
registry: registry:
description: Registry host (HTTPS, real cert; add :port only if non-443) description: Registry host (HTTPS, real cert; add :port only if non-443)
required: false required: false
default: "git.lab.holtlabs.xyz" default: "git.holtlabs.xyz"
registry-user: registry-user:
description: Registry login user (pass secrets.REGISTRY_USER) description: Registry login user (pass secrets.REGISTRY_USER)
required: true required: true

View file

@ -18,7 +18,7 @@ inputs:
registry: registry:
description: Registry host:port (must match build-push) description: Registry host:port (must match build-push)
required: false required: false
default: "git.lab.holtlabs.xyz" default: "git.holtlabs.xyz"
runs: runs:
using: composite using: composite
steps: steps:
@ -31,7 +31,7 @@ runs:
IMAGE="${{ inputs.registry }}/$GITHUB_REPOSITORY_OWNER/${{ inputs.app-name }}" IMAGE="${{ inputs.registry }}/$GITHUB_REPOSITORY_OWNER/${{ inputs.app-name }}"
DIR="$(mktemp -d)" DIR="$(mktemp -d)"
trap 'rm -rf "$DIR"' EXIT trap 'rm -rf "$DIR"' EXIT
git clone --depth 1 "https://ci-bot:${GITOPS_TOKEN}@git.lab.holtlabs.xyz/${{ inputs.gitops-repo }}.git" "$DIR" git clone --depth 1 "https://ci-bot:${GITOPS_TOKEN}@git.holtlabs.xyz/${{ inputs.gitops-repo }}.git" "$DIR"
cd "$DIR/manifests/${{ inputs.app-name }}" cd "$DIR/manifests/${{ inputs.app-name }}"
kustomize edit set image "${{ inputs.app-name }}=$IMAGE:$TAG" kustomize edit set image "${{ inputs.app-name }}=$IMAGE:$TAG"
cd "$DIR" cd "$DIR"