No description
- Go 86.5%
- Dockerfile 13.5%
| .github/workflows | ||
| Dockerfile | ||
| go.mod | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
Go
A minimal Go HTTP service with tests and a multi-stage Docker build.
CI workflow
The workflow lives at .github/workflows/ci.yml and declares runs-on: ubuntu-latest. Both are GitHub defaults, unchanged. Nothing in this repository was renamed or rewritten to run here:
.github/workflows/is read directly. There is no.forgejo/directory.ubuntu-latestroutes to a Codebahn runner in Paris.actions/checkoutandactions/setup-goresolve from GitHub automatically.
On every push and pull request:
- Runs
go vetandgo test - Builds the Docker image
- Starts the container and verifies
/healthresponds
Uncomment the push steps in ci.yml to ship images to the built-in container registry. The job token authenticates automatically, so there are no secrets to configure.
Need more than the 3 GB default? Set runs-on: codebahn-medium for 7 GB. See CI runners.
Run locally
go test ./...
go run main.go
# or
docker build -t myapp . && docker run -p 8080:8080 myapp