Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]
pull_request:
# The merge queue of main: a pull request merges once CI passes on it merged with those ahead.
merge_group:
# Run by hand: Actions › CI › Run workflow.
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ go test ./web # checks a bui

Do not start the server (`make run`, `docker run`, …) yourself; the user runs it in their own terminal. Check it with `curl localhost:8000/health` and ask the user to start it if it is not reachable. `make run` loads `.env` and `.env.local` (gitignored; template in `.env.example`); without projects (added on the Projects page or by `create_project`) every event is rejected: the start logs a warning, each rejected envelope only a debug line (`LOG_LEVEL=debug`). `.env.example` is a working local setup (the first admin set up with `exceptic`/`exceptic`, an API token; a project is added on the Projects page), short, every variable only in `docs/configuration.md`; real keys and passwords go into `.env.local` and never into it. `go run` does not rebuild on change: after editing Go code (or rebuilding the web app, which is embedded), the user must restart it.

The image has a writable `/tmp` (scratch has none). CI (`.github/workflows/ci.yml`) runs golangci-lint (pinned version), `make test`, `make vulncheck`, `make web-check web` with `go test ./web`, an amd64 image build with the size check and an arm64 build. `make release` (`tools/release.sh`, as hothost's build.sh: from this machine, no CI secrets; the version from the commits since the last release as semantic-release reads them (AdminForth): a breaking change the major, `feat:` the minor, `fix:`/`perf:` the patch, none of them nothing to release; asked for confirmation; or `VERSION=X.Y.Z`) checks that `main` is clean, pushed and green on CI for that commit (`gh run list`), builds the image with the size check, pushes `devforth/exceptic:X.Y.Z`, `:X.Y` and `:latest` (a pre-release `X.Y.Z-rc.1` only its own) for amd64 and arm64 with the machine's `docker login` (buildx), tags the commit `vX.Y.Z` and makes its GitHub release (`gh release create`, the commits since the previous tag; a pre-release marked so), and for a release replaces the description on Docker Hub with `docs/dockerhub.md` (short, links to GitHub by absolute URL, since Docker Hub resolves no relative link; markers of its copied blocks stripped) when `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` (Read, Write & Delete) are in the environment or `.env.local`. `image-scan.yml` runs Trivy weekly over the published `:latest` (fixable HIGH/CRITICAL fail the run: a patch release with a newer Go or module). `compose.yml` is the example deployment the docs refer to; its `caddy` profile (`COMPOSE_PROFILES=caddy` in `.env`) adds Caddy with HTTPS on the host's network as `caddy reverse-proxy --from $PUBLIC_URL` (no Caddyfile; that command has no admin API; Exceptic limits request bodies itself).
The image has a writable `/tmp` (scratch has none). CI (`.github/workflows/ci.yml`, on pull requests, on main and in the merge queue of main (`merge_group`): `main` takes pull requests only through the queue, which tests each merged with those ahead and merges it with its title as the commit's subject) runs golangci-lint (pinned version), `make test`, `make vulncheck`, `make web-check web` with `go test ./web`, an amd64 image build with the size check and an arm64 build. `make release` (`tools/release.sh`, as hothost's build.sh: from this machine, no CI secrets; the version from the commits since the last release as semantic-release reads them (AdminForth): a breaking change the major, `feat:` the minor, `fix:`/`perf:` the patch, none of them nothing to release; asked for confirmation; or `VERSION=X.Y.Z`) checks that `main` is clean, pushed and green on CI for that commit (`gh run list`), builds the image with the size check, pushes `devforth/exceptic:X.Y.Z`, `:X.Y` and `:latest` (a pre-release `X.Y.Z-rc.1` only its own) for amd64 and arm64 with the machine's `docker login` (buildx), tags the commit `vX.Y.Z` and makes its GitHub release (`gh release create`, the commits since the previous tag; a pre-release marked so), and for a release replaces the description on Docker Hub with `docs/dockerhub.md` (short, links to GitHub by absolute URL, since Docker Hub resolves no relative link; markers of its copied blocks stripped) when `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` (Read, Write & Delete) are in the environment or `.env.local`. `image-scan.yml` runs Trivy weekly over the published `:latest` (fixable HIGH/CRITICAL fail the run: a patch release with a newer Go or module). `compose.yml` is the example deployment the docs refer to; its `caddy` profile (`COMPOSE_PROFILES=caddy` in `.env`) adds Caddy with HTTPS on the host's network as `caddy reverse-proxy --from $PUBLIC_URL` (no Caddyfile; that command has no admin API; Exceptic limits request bodies itself).

## Architecture

Expand Down
Loading