ci: kaniko image builds (no docker socket); remove dead SSH deploy #2
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/office-betting!2
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/kaniko-image-builds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prepares this repo for the NAS runner hardening (jmz/nas-docker-compose#156). After it, CI jobs can't mount the docker socket.
1.
ci.yaml: build-backend / build-frontend use kanikoBoth jobs used
docker:cliwith/var/run/docker.sockmounted. That mount hands the job the privileged dind daemon, which is root on the NAS, and #156 removes it. They now build and push daemonlessly with kaniko, as in nas-docker-compose.forgejo/workflows/myfava-image.yml/matrix-webhook-image.yml:uses: docker://gcr.io/kaniko-project/executor:v1.23.2@sha256:9e69fd43…ac53f(pinned by tag and digest).$GITHUB_WORKSPACE/.docker/config.json, outside both build contexts, viaDOCKER_CONFIG.--contextand--dockerfileper image.git.mirus-tech.com/public/betting-{backend,frontend}:{<sha7>,latest}. Sameneeds:and master/main condition.--add-host git.mirus-tech.com:192.168.1.240. The runner drops--add-host, and #156's egress policy blocks 192.168.0.0/16. Inside dind, git.mirus-tech.com resolves via MagicDNS to the allow-listed tailnet ingress.Before this can go green, two things are already broken (not caused by this PR):
docker login:Get "https://git.mirus-tech.com/v2/": unauthorized. TheREGISTRY_USER/REGISTRY_TOKENsecrets (repo andpublicorg level) are stale. kaniko needs a valid token with write:package onpublic.lint-backendfails with 3 ruff errors (StrEnum), sobuild-backendis skipped anyway.2.
deploy.yamlremoved (separate commit; drop it if you prefer to keep the file)ci.yaml.DEPLOY_HOST,DEPLOY_USERandDEPLOY_SSH_KEYexist neither as repo nor as org secrets (only the REGISTRY_* pair does).cd /opt/docker/bettingwas the NAS's compose projectbetting, whose volumebetting_betting-datastill exists. The directory is gone, and the app now has k3s manifests in jmz/homelab-fluxapps/betting(currentlyreplicas: 0, pulling:latest).DEPLOY_HOSTwould be the NAS on the LAN (192.168.1.x) or the tailnet (100.64.x). #156 blocks both on purpose.:latestor<sha7>tags pinned in homelab-flux and bumped by Renovate or Flux image automation.No
pull_requesttrigger was added. CI still runs on pushes only, so fork PRs never execute on the homelab runner.🤖 Generated with Claude Code
https://claude.ai/code/session_01JPMfW8M8fH1ichGauN6DhV