[0;36m[STEP][0m  0/3 — Checking the registry: is 0.177.0 already published?
[0;32m[INFO][0m  0.177.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.177.0   (build-hub.sh v1.25.0)
[0;32m[INFO][0m  Commit:   636022dc
[0;32m[INFO][0m  Source:   /mnt/5_hdd/felhom.eu/git/felhom.eu/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.177.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 0.0s 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/golang:pull token for registry-1.docker.io
#3 DONE 0.0s

#4 [auth] library/alpine: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 0.9s

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

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

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

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

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

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

#7 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#7 extracting sha256:7b229517ed222597277036d94892173207d01a731ab3a88eeb1de2e963a2c788 0.1s done
#7 sha256:c8e3100880d834be60a9562375f4c5018b2cb26d64591bd0060aa3a80b935f43 126B / 126B 0.1s done
#7 sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 0B / 244.47kB 0.2s
#7 sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 244.47kB / 244.47kB 0.3s done
#7 extracting sha256:c012d78a862fe59ae6789c91f982ea68a882c9c44bbde97013914458dcdd9c4c 0.1s done
#7 DONE 0.5s

#7 [builder 1/6] FROM docker.io/library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c
#7 extracting sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b
#7 extracting sha256:82e0bb27ae78502103ed383ed33346f88a83943fb7bd93977850d5890ee8fb3b 5.5s done
#7 DONE 6.0s

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

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

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

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

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

#14 [builder 6/6] RUN go mod tidy &&     CGO_ENABLED=0 go build     -ldflags "-s -w -X main.Version=0.177.0 -X main.BuildTime=2026-10-29T15:40:29Z"     -o /felhom-hub ./cmd/hub/
#14 0.813 go: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
#14 0.845 go: downloading modernc.org/fileutil v1.3.40
#14 0.845 go: downloading github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e
#14 0.867 go: downloading golang.org/x/term v0.47.0
#14 1.017 go: downloading modernc.org/ccgo/v4 v4.30.1
#14 1.017 go: downloading modernc.org/goabi0 v0.2.0
#14 1.019 go: downloading modernc.org/cc/v4 v4.27.1
#14 1.019 go: downloading golang.org/x/tools v0.38.0
#14 1.546 go: downloading modernc.org/strutil v1.2.1
#14 1.546 go: downloading golang.org/x/mod v0.29.0
#14 1.546 go: downloading modernc.org/opt v0.1.4
#14 1.546 go: downloading modernc.org/gc/v2 v2.6.5
#14 1.546 go: downloading modernc.org/gc/v3 v3.1.1
#14 1.652 go: downloading modernc.org/token v1.1.0
#14 1.776 go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
#14 2.031 go: downloading golang.org/x/sync v0.17.0
#14 2.375 go: downloading modernc.org/sortutil v1.2.1
#14 DONE 25.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.1s

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

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

#19 exporting to image
#19 exporting layers
#19 exporting layers 2.1s done
#19 exporting manifest sha256:1cef4b671d228fb513e1add42aff89c2fc5293860dafd5da8a0a6ca98378653f
#19 exporting manifest sha256:1cef4b671d228fb513e1add42aff89c2fc5293860dafd5da8a0a6ca98378653f 0.2s done
#19 exporting config sha256:b9f5cf919c107056ac7e38d993bda0228544a01afc64ea53df7a1641bdbe612b
#19 exporting config sha256:b9f5cf919c107056ac7e38d993bda0228544a01afc64ea53df7a1641bdbe612b 0.2s done
#19 exporting attestation manifest sha256:4c91821577d3f90ec6137f8c84ca49ebff61163aa9f65d6930dc92b15ef00364
#19 exporting attestation manifest sha256:4c91821577d3f90ec6137f8c84ca49ebff61163aa9f65d6930dc92b15ef00364 0.2s done
#19 exporting manifest list sha256:727eeec76bf728c00f9a7e645ad26fddff31addc5bca9f8465098e264eb90ef9
#19 exporting manifest list sha256:727eeec76bf728c00f9a7e645ad26fddff31addc5bca9f8465098e264eb90ef9 0.2s done
#19 naming to gitea.dooplex.hu/admin/felhom-hub:0.177.0
#19 naming to gitea.dooplex.hu/admin/felhom-hub:0.177.0 0.0s done
#19 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.177.0
#19 unpacking to gitea.dooplex.hu/admin/felhom-hub:0.177.0 0.8s done
#19 DONE 3.9s
[0;32m[INFO][0m  Pushing...
The push refers to repository [gitea.dooplex.hu/admin/felhom-hub]
93c1eb832da7: Waiting
44136fa355b3: Waiting
e2de96513ba9: Waiting
a7b714fcaa8a: Waiting
e2de96513ba9: Layer already exists
a7b714fcaa8a: Pushed
93c1eb832da7: Layer already exists
44136fa355b3: Already exists
08ed9914c642: Pushed
2cdd01c9b0e8: Pushed
525e3ecc2922: Pushed
0.177.0: digest: sha256:727eeec76bf728c00f9a7e645ad26fddff31addc5bca9f8465098e264eb90ef9 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.177.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 /mnt/5_hdd/felhom.eu/git/felhom.eu/manifests/hub.yaml to 0.177.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.

