move entrypoint to repo root
11 files changed, 7 insertions(+), 10 deletions(-)
M .ko.yaml → .ko.yaml
@@ -2,10 +2,7 @@ defaultPlatforms: - linux/amd64 builds: - id: alanpearce-eu - main: cmd/server - flags: - - -tags - - embed + main: . ldflags: - -X go.alanpearce.eu/website/internal/server.CommitSHA={{ .Git.FullCommit }} - -X go.alanpearce.eu/website/internal/server.ShortSHA={{ .Git.ShortCommit }}
M justfile → justfile
@@ -38,4 +38,4 @@ fly auth docker deploy *DEPLOY_FLAGS: templ generate - fly deploy --image $(KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} ./cmd/server) {{ DEPLOY_FLAGS }} + fly deploy --image $(KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} .) {{ DEPLOY_FLAGS }}
M templates/files.go → templates/files.go
@@ -4,7 +4,7 @@ import ( "os" ) -var Files = os.DirFS(getEnvFallback("KO_DATA_PATH", "cmd/server/kodata")) +var Files = os.DirFS(getEnvFallback("KO_DATA_PATH", "kodata")) func getEnvFallback(key, fallback string) string { if value, found := os.LookupEnv(key); found {