Compare commits

...
10 Commits
Author SHA1 Message Date
Mukul SharmaandClaude Opus 5 c00f06cb44 GKE: build from this cluster's registry
demo-go-app is the one demo app that ships its own Dockerfile, and that
Dockerfile names the registry — so unlike toolshed, whose source is
genuinely cluster-agnostic, this repo cannot serve both clusters from one
copy. Both stages now pull from harbor.35.238.248.203.nip.io.

Nothing else needed changing. The Jenkinsfile is two lines and resolves
whichever devops-lib the Jenkins running it has registered, and config.yaml
only exercises the pre/post-build hooks.

Both base images it needs, golang:1.22-alpine and alpine:3.20, are present
in devops-base-images-gcp's manifest — an unmirrored tag would fail the
build rather than quietly falling back to Docker Hub.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LEsTefWWifp4ikvhHF5s6N
2026-09-13 01:51:50 +05:30
Mukul Sharma fa40e4287c Merge branch 'main' of http://gitea.100.90.248.118.nip.io/mukul/demo-go-app 2026-09-03 09:35:46 +05:30
Mukul Sharma c327f9eec5 Pull base images from Harbor, not Docker Hub
Matches devops-lib#4b90815 — this repo has its own Dockerfile, so it
never went through the fallback templates that change updated. Same
base-images/golang:1.22-alpine and base-images/alpine:3.20 already
mirrored there.
2026-09-03 09:35:46 +05:30
mukul 60d2609262 Update go.mod 2026-09-02 20:15:17 +00:00
mukul c3e1587ca3 Update go.mod 2026-09-02 20:12:29 +00:00
mukul 42f0129a1d Update go.mod 2026-09-02 20:07:44 +00:00
mukul 1139a11295 Update go.mod 2026-09-02 20:01:26 +00:00
Mukul Sharma c0d1336d98 Merge remote-tracking branch 'origin/main' 2026-09-03 01:26:21 +05:30
Mukul Sharma 11d8abe867 test: trigger webhook build 2026-09-03 01:25:18 +05:30
mukul 5bcc7391fb Update Dockerfile 2026-09-02 19:53:23 +00:00
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
FROM golang:1.22-alpine AS build FROM harbor.35.238.248.203.nip.io/base-images/golang:1.22-alpine AS build
WORKDIR /src WORKDIR /src
COPY go.mod ./ COPY go.mod ./
COPY main.go ./ COPY main.go ./
RUN CGO_ENABLED=0 go build -o /app . RUN CGO_ENABLED=0 go build -o /app .
FROM alpine:3.20 FROM harbor.35.238.248.203.nip.io/base-images/alpine:3.20
COPY --from=build /app /app COPY --from=build /app /app
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/app"] ENTRYPOINT ["/app"]
+1
View File
@@ -35,3 +35,4 @@ func main() {
log.Printf("listening on :%s (version %s)", port, version) log.Printf("listening on :%s (version %s)", port, version)
log.Fatal(http.ListenAndServe(":"+port, nil)) log.Fatal(http.ListenAndServe(":"+port, nil))
} }
// webhook test: 2026-09-02T19:55:14Z