[0;36m[STEP][0m  1/3 — Pulling latest code (the tree must be clean and at origin/main)...

[0;32m[INFO][0m  ╔══════════════════════════════════════╗
[0;32m[INFO][0m  ║  felhom-hub build                    ║
[0;32m[INFO][0m  ╚══════════════════════════════════════╝
[0;32m[INFO][0m  Version:  0.155.0   (build-hub.sh v1.24.0)
[0;32m[INFO][0m  Commit:   b17e9e99
[0;32m[INFO][0m  Source:   /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/ea0beee5-5628-47eb-8358-0fda9995b9cd/scratchpad/hubclone/hub
[0;32m[INFO][0m  Build:    /mnt/5_hdd/felhom.eu/build/felhom-hub/workspace
[0;32m[INFO][0m  Image:    gitea.dooplex.hu/admin/felhom-hub:0.155.0

[0;36m[STEP][0m  2/3 — Syncing source to workspace...
[0;32m[INFO][0m  Source synced to /mnt/5_hdd/felhom.eu/build/felhom-hub/workspace
[0;32m[INFO][0m  App assets synced (263 files)
[0;32m[INFO][0m  Package structure verified ✓
[0;32m[INFO][0m  Running go mod tidy...
[0;36m[STEP][0m  3/3 — Building Docker image...
[0;32m[INFO][0m  Building for current platform + pushing...
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.03kB done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/alpine:3.21
#2 ...

#3 [auth] library/alpine:pull token for registry-1.docker.io
#3 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.24-alpine
#4 DONE 0.5s

#2 [internal] load metadata for docker.io/library/alpine:3.21
#2 DONE 1.0s

#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [builder 1/6] FROM docker.io/library/golang:1.24-alpine@sha256:8bee1901f1e530bfb4a7850aa7a479d17ae3a18beb6e09064ed54cfd245b7191
#6 resolve docker.io/library/golang:1.24-alpine@sha256:8bee1901f1e530bfb4a7850aa7a479d17ae3a18beb6e09064ed54cfd245b7191 0.0s done
#6 DONE 0.0s

#7 [stage-1 1/5] FROM docker.io/library/alpine:3.21@sha256:ce64758a109eb420d874a118f87920e625e12d3634e03b4a5573fd9f6e5d3507
#7 resolve docker.io/library/alpine:3.21@sha256:ce64758a109eb420d874a118f87920e625e12d3634e03b4a5573fd9f6e5d3507 0.0s done
#7 DONE 0.0s

#8 [internal] load build context
#8 transferring context: 22.16MB 0.3s done
#8 DONE 0.3s

#9 [builder 2/6] WORKDIR /app
#9 CACHED

#10 [builder 3/6] COPY go.mod go.sum* ./
#10 CACHED

#11 [builder 4/6] RUN go mod download || true
#11 CACHED

#12 [builder 5/6] COPY . .
#12 DONE 0.5s

#13 [builder 6/6] RUN go mod tidy &&     CGO_ENABLED=0 go build     -ldflags "-s -w -X main.Version=0.155.0 -X main.BuildTime=2026-10-16T10:27:51Z"     -o /felhom-hub ./cmd/hub/
#13 0.588 go: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
#13 0.674 go: downloading github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e
#13 0.674 go: downloading modernc.org/fileutil v1.3.40
#13 0.752 go: downloading golang.org/x/term v0.27.0
#13 1.407 go: downloading modernc.org/goabi0 v0.2.0
#13 1.407 go: downloading modernc.org/ccgo/v4 v4.30.1
#13 1.408 go: downloading golang.org/x/tools v0.38.0
#13 1.408 go: downloading modernc.org/cc/v4 v4.27.1
#13 1.568 go: downloading modernc.org/opt v0.1.4
#13 1.568 go: downloading modernc.org/sortutil v1.2.1
#13 1.568 go: downloading modernc.org/token v1.1.0
#13 1.568 go: downloading modernc.org/strutil v1.2.1
#13 1.677 go: downloading modernc.org/gc/v2 v2.6.5
#13 1.677 go: downloading golang.org/x/mod v0.29.0
#13 1.677 go: downloading modernc.org/gc/v3 v3.1.1
#13 1.853 go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
#13 2.297 go: downloading golang.org/x/sync v0.17.0
#13 DONE 28.9s

#14 [stage-1 2/5] RUN apk add --no-cache ca-certificates tzdata
#14 CACHED

#15 [stage-1 3/5] COPY --from=builder /felhom-hub /usr/local/bin/felhom-hub
#15 DONE 0.1s

#16 [stage-1 4/5] RUN mkdir -p /data /etc/felhom-hub
#16 DONE 0.4s

#17 [stage-1 5/5] COPY assets/ /usr/share/felhom/assets-seed/
#17 DONE 0.2s

#18 exporting to image
#18 exporting layers
#18 exporting layers 1.7s done
#18 exporting manifest sha256:85993ce3107c07224e3b2879ac5923484faae39bc2855d45727b08388e6072f9 done
#18 exporting config sha256:b9b65f8d1a9f22c7db3e3380dac44cd225e6f74d7c6fc54fc06ac5ac67922285 done
#18 exporting attestation manifest sha256:e008c6587c24824a95cbd92de610e8d88690f621c25bd6a58091058cf4cee387 0.0s done
#18 exporting manifest list sha256:cbb985f112ea91faca35753e00b2050afa62f8f43959cd92f1a572a83332357c done
#18 naming to gitea.dooplex.hu/admin/felhom-hub:0.155.0 done
#18 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.155.0
#18 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.155.0 0.4s done
#18 DONE 2.2s
[0;32m[INFO][0m  Pushing...
The push refers to repository [gitea.dooplex.hu/admin/felhom-hub]
230e7dbd455c: Waiting
ae65be320b40: Waiting
578a00837f0f: Waiting
16333ee0c00f: Waiting
b0bdb16b2ff6: Waiting
8473a613e3d1: Waiting
230e7dbd455c: Waiting
ae65be320b40: Waiting
578a00837f0f: Layer already exists
16333ee0c00f: Layer already exists
b0bdb16b2ff6: Waiting
8473a613e3d1: Waiting
8473a613e3d1: Pushed
230e7dbd455c: Pushed
b0bdb16b2ff6: Pushed
ae65be320b40: Pushed
0.155.0: digest: sha256:cbb985f112ea91faca35753e00b2050afa62f8f43959cd92f1a572a83332357c size: 856

[0;32m[INFO][0m  ╔══════════════════════════════════════╗
[0;32m[INFO][0m  ║  Build complete ✓                    ║
[0;32m[INFO][0m  ╚══════════════════════════════════════╝
[0;32m[INFO][0m  Image: gitea.dooplex.hu/admin/felhom-hub:0.155.0
[0;32m[INFO][0m  Size:  27M

[0;32m[INFO][0m  Image pushed to registry.

[0;32m[INFO][0m  Deploy to k3s — GitOps ONLY. The manifest in git is the source of truth:
[0;32m[INFO][0m    1. bump the image tag in /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/ea0beee5-5628-47eb-8358-0fda9995b9cd/scratchpad/hubclone/manifests/hub.yaml to 0.155.0, commit, push
[0;32m[INFO][0m    2. hard-refresh + sync the ArgoCD app (auto-sync is OFF — the sync is deliberate):
[0;32m[INFO][0m       sudo kubectl -n argocd annotate application felhom argocd.argoproj.io/refresh=hard --overwrite
[0;32m[INFO][0m       sudo kubectl -n argocd patch application felhom --type merge \
[0;32m[INFO][0m         -p '"{"operation":"initiatedBy":{"username":"cc"}}"'        -p '"{"operation":"sync":{"syncStrategy":{"apply":{}}}}"'
[0;32m[INFO][0m  
[0;32m[INFO][0m    NEVER `kubectl set image` or `kubectl apply` by hand — ArgoCD reverts it on the next
[0;32m[INFO][0m    sync, so the change looks applied, works for a while, and then silently disappears.

