[0;36m[STEP][0m  0/3 — Checking the registry: is 0.174.0 already published?
[0;32m[INFO][0m  0.174.0 is not present in the registry — proceeding.
[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.174.0   (build-hub.sh v1.25.0)
[0;32m[INFO][0m  Commit:   d85198b8
[0;32m[INFO][0m  Source:   /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/0b76c4d7-9b39-4e4e-869d-d0d2c6006331/scratchpad/felhom-eu-clean/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.174.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.46kB done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#2 ...

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

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

#5 [internal] load metadata for docker.io/library/alpine:3.24.2@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6
#5 DONE 1.1s

#2 [internal] load metadata for docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#2 DONE 1.8s

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

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

#8 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#8 resolve docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c 0.0s done
#8 DONE 0.0s

#9 [internal] load build context
#9 transferring context: 22.60MB 0.3s done
#9 DONE 0.3s

#8 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#8 DONE 0.2s

#8 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#8 extracting sha256:7b229517ed222597277036d94892173207d01a731ab3a88eeb1de2e963a2c788 0.1s done
#8 sha256:c8e3100880d834be60a9562375f4c5018b2cb26d64591bd0060aa3a80b935f43 126B / 126B 0.2s done
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 0B / 71.15MB 0.3s
#8 sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 0B / 244.47kB 0.2s
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 11.53MB / 71.15MB 0.6s
#8 sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 244.47kB / 244.47kB 0.7s done
#8 extracting sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 0.1s done
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 35.65MB / 71.15MB 0.9s
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 49.28MB / 71.15MB 1.1s
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 59.77MB / 71.15MB 1.2s
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 71.15MB / 71.15MB 1.4s
#8 sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 71.15MB / 71.15MB 1.5s done
#8 extracting sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b
#8 extracting sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 5.5s done
#8 DONE 7.3s

#8 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#8 extracting sha256:c8e3100880d834be60a9562375f4c5018b2cb26d64591bd0060aa3a80b935f43 0.0s done
#8 extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s done
#8 DONE 7.3s

#10 [builder 2/6] WORKDIR /app
#10 DONE 1.0s

#11 [builder 3/6] COPY go.mod go.sum* ./
#11 DONE 0.0s

#12 [builder 4/6] RUN go mod download || true
#12 DONE 8.5s

#13 [builder 5/6] COPY . .
#13 DONE 0.3s

#14 [builder 6/6] RUN go mod tidy &&     CGO_ENABLED=0 go build     -ldflags "-s -w -X main.Version=0.174.0 -X main.BuildTime=2026-10-27T18:21:23Z"     -o /felhom-hub ./cmd/hub/
#14 0.393 go: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
#14 0.428 go: downloading modernc.org/fileutil v1.3.40
#14 0.428 go: downloading github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e
#14 0.444 go: downloading golang.org/x/term v0.47.0
#14 0.604 go: downloading modernc.org/ccgo/v4 v4.30.1
#14 0.604 go: downloading modernc.org/goabi0 v0.2.0
#14 0.604 go: downloading golang.org/x/tools v0.38.0
#14 0.604 go: downloading modernc.org/cc/v4 v4.27.1
#14 0.960 go: downloading modernc.org/opt v0.1.4
#14 0.960 go: downloading modernc.org/sortutil v1.2.1
#14 0.960 go: downloading modernc.org/strutil v1.2.1
#14 0.960 go: downloading modernc.org/token v1.1.0
#14 1.085 go: downloading modernc.org/gc/v2 v2.6.5
#14 1.085 go: downloading golang.org/x/mod v0.29.0
#14 1.085 go: downloading modernc.org/gc/v3 v3.1.1
#14 1.189 go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
#14 1.591 go: downloading golang.org/x/sync v0.17.0
#14 DONE 23.2s

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

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

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

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

#19 exporting to image
#19 exporting layers
#19 exporting layers 3.1s done
#19 exporting manifest sha256:d0107a4fbc74cb575ab0ffdf9313560c09f5346604850cc63f9b94a094652a50 0.1s done
#19 exporting config sha256:9fd122d68270b24d81dff95b3ae0bd8087c395d88fe6dc1b0ec9a245b1c5fa41 0.0s done
#19 exporting attestation manifest sha256:3116065764acf34a6699cfbb21347c49b143104754c9a8139da589cdd8516d83 0.0s done
#19 exporting manifest list sha256:4f9ee04a9ff7c108a37a411be3c3de521b6acccb431c9e550c3567f7211e2e94 0.0s done
#19 naming to gitea.dooplex.hu/admin/felhom-hub:0.174.0 done
#19 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.174.0
#19 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.174.0 0.3s done
#19 DONE 3.6s
[0;32m[INFO][0m  Pushing...
The push refers to repository [gitea.dooplex.hu/admin/felhom-hub]
93c1eb832da7: Waiting
44136fa355b3: Waiting
c89750c9a8b7: Waiting
e2de96513ba9: Waiting
e2de96513ba9: Layer already exists
93c1eb832da7: Layer already exists
44136fa355b3: Already exists
979db3c09e54: Pushed
c89750c9a8b7: Pushed
eb8433490c74: Pushed
142d086ef218: Pushed
0.174.0: digest: sha256:4f9ee04a9ff7c108a37a411be3c3de521b6acccb431c9e550c3567f7211e2e94 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.174.0
[0;32m[INFO][0m  Size:  73M

[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/0b76c4d7-9b39-4e4e-869d-d0d2c6006331/scratchpad/felhom-eu-clean/manifests/hub.yaml to 0.174.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.

