diff --git a/.aider.conventions.md b/.aider.conventions.md index 7779a58..5b2b175 100644 --- a/.aider.conventions.md +++ b/.aider.conventions.md @@ -1,11 +1,11 @@ -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/.context/PROJECT.md b/.context/PROJECT.md index 7779a58..5b2b175 100644 --- a/.context/PROJECT.md +++ b/.context/PROJECT.md @@ -1,11 +1,11 @@ -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/.context/system-prompt.txt b/.context/system-prompt.txt index b5ac4e7..00a6186 100644 --- a/.context/system-prompt.txt +++ b/.context/system-prompt.txt @@ -3,14 +3,14 @@ Follow all conventions from both the root agent context and project context. --- -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/.cursorrules b/.cursorrules index ec38077..2fd6be3 100644 --- a/.cursorrules +++ b/.cursorrules @@ -1,14 +1,14 @@ # Cursor rules — auto-generated # Do not edit. Run: task context:sync -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index 11c707a..7729466 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -8,7 +8,7 @@ on: branches: [main] env: - IMAGE: hostexecutor + IMAGE: __PROJECT_NAME__ jobs: check: @@ -81,16 +81,16 @@ jobs: rm -rf /tmp/infra git clone -b main ssh://git@10.0.1.20:30022/mathias/infra.git /tmp/infra cd /tmp/infra - DEPLOYMENT="k3s/apps/hostexecutor/deployment.yaml" - sed -i "s|image: localhost:5000/hostexecutor:.*|image: localhost:5000/hostexecutor:${IMAGE_TAG}|" "$DEPLOYMENT" - grep -q "localhost:5000/hostexecutor:${IMAGE_TAG}" "$DEPLOYMENT" \ + DEPLOYMENT="k3s/apps/__PROJECT_NAME__/deployment.yaml" + sed -i "s|image: localhost:5000/__PROJECT_NAME__:.*|image: localhost:5000/__PROJECT_NAME__:${IMAGE_TAG}|" "$DEPLOYMENT" + grep -q "localhost:5000/__PROJECT_NAME__:${IMAGE_TAG}" "$DEPLOYMENT" \ || { echo "✗ image tag patch failed"; exit 1; } if git diff --quiet "$DEPLOYMENT"; then echo "ℹ image tag unchanged — skipping push" else - git -c user.name="hostexecutor CI" \ - -c user.email="ci@hostexecutor.local" \ - commit -m "chore(deploy): hostexecutor → ${IMAGE_TAG}" "$DEPLOYMENT" + git -c user.name="__PROJECT_NAME__ CI" \ + -c user.email="ci@__PROJECT_NAME__.local" \ + commit -m "chore(deploy): __PROJECT_NAME__ → ${IMAGE_TAG}" "$DEPLOYMENT" git push origin main echo "✓ pushed to infra repo" fi @@ -105,11 +105,11 @@ jobs: - name: Verify rollout run: | - kubectl rollout status deployment/hostexecutor \ - --namespace hostexecutor \ + kubectl rollout status deployment/__PROJECT_NAME__ \ + --namespace __PROJECT_NAME__ \ --timeout=120s \ || { - kubectl get pods -n hostexecutor -o wide - kubectl get events -n hostexecutor --sort-by='.lastTimestamp' | tail -20 + kubectl get pods -n __PROJECT_NAME__ -o wide + kubectl get events -n __PROJECT_NAME__ --sort-by='.lastTimestamp' | tail -20 exit 1 } diff --git a/AGENTS.md b/AGENTS.md index 7779a58..5b2b175 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,11 +1,11 @@ -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/CLAUDE.md b/CLAUDE.md index 7779a58..5b2b175 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,11 +1,11 @@ -# hostexecutor +# __PROJECT_NAME__ ## Identity -- **Name**: hostexecutor +- **Name**: __PROJECT_NAME__ - **Owner**: Mathias - **Client**: personal -- **Repo**: gitea.d-ma.be/mathias/hostexecutor +- **Repo**: __MODULE_PATH__ - **Status**: active ## Stack diff --git a/Dockerfile b/Dockerfile index 775d81a..b32c16e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN go install github.com/a-h/templ/cmd/templ@latest COPY go.mod ./ RUN go mod download COPY . . -RUN templ generate && CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/app ./cmd/hostexecutor +RUN templ generate && CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/app ./cmd/__PROJECT_NAME__ FROM gcr.io/distroless/static-debian12:nonroot COPY --from=build /out/app /app diff --git a/README.md b/README.md index 9ed663b..2e2c67c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# hostexecutor +# __PROJECT_NAME__ > Generated from `mathias/template-go-web`. diff --git a/Taskfile.yml b/Taskfile.yml index fbca41b..23e9e31 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -7,10 +7,10 @@ tasks: build: desc: Build the binary deps: [generate] - cmds: [go build -o bin/hostexecutor ./cmd/hostexecutor] + cmds: [go build -o bin/__PROJECT_NAME__ ./cmd/__PROJECT_NAME__] run: deps: [build] - cmds: [./bin/hostexecutor] + cmds: [./bin/__PROJECT_NAME__] test: desc: Run all tests deps: [generate] diff --git a/cmd/hostexecutor/main.go b/cmd/__PROJECT_NAME__/main.go similarity index 81% rename from cmd/hostexecutor/main.go rename to cmd/__PROJECT_NAME__/main.go index f9deb06..e8959bf 100644 --- a/cmd/hostexecutor/main.go +++ b/cmd/__PROJECT_NAME__/main.go @@ -5,7 +5,7 @@ import ( "net/http" "os" - "gitea.d-ma.be/mathias/hostexecutor/internal/web" + "__MODULE_PATH__/internal/web" ) func main() { @@ -19,7 +19,7 @@ func main() { mux.Handle("/", web.NewHandler()) addr := ":8080" - logger.Info("hostexecutor starting", "addr", addr) + logger.Info("__PROJECT_NAME__ starting", "addr", addr) if err := http.ListenAndServe(addr, mux); err != nil { logger.Error("server stopped", "err", err) os.Exit(1) diff --git a/go.mod b/go.mod index 4a385f0..198b4ef 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.d-ma.be/mathias/hostexecutor +module __MODULE_PATH__ go 1.26 diff --git a/internal/web/index.templ b/internal/web/index.templ index cad3d2e..7a86488 100644 --- a/internal/web/index.templ +++ b/internal/web/index.templ @@ -1,8 +1,8 @@ package web templ Index() { - @Layout("hostexecutor") { -

hostexecutor

+ @Layout("__PROJECT_NAME__") { +

__PROJECT_NAME__