Go service template — z3k platform
Find a file Use this template
Arthur Zinck 7b8f5dd187
Some checks failed
build-image / build (push) Failing after 4s
ci: preview build on pull requests
2026-07-27 11:51:34 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:34 +00:00
.dockerignore feat: golang template — .dockerignore 2026-07-26 19:38:22 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:34 +00:00
go.mod feat: golang template — go.mod 2026-07-26 19:38:21 +00:00
main.go feat: golang template — main.go 2026-07-26 19:38:20 +00:00
README.md feat: golang template — README.md 2026-07-26 19:38:23 +00:00

Go service — z3k platform template

A minimal HTTP service, wired for the platform:

  • listens on PORT (default 8080), health checks on /health
  • every push to main builds and publishes an image; the platform deploys it automatically
  • env vars come from the console's Configuration tab

Edit main.go, push, and watch your deployment in the console.