From fb021b165b6c15897f3cc1ca4bbb1d6438d60c30 Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Fri, 14 Aug 2026 18:29:08 -0400 Subject: [PATCH] ci: point Docker registry at internal Gitea (10.5.0.195:3000) Cut the dependency on the public hostname gitea.danielarroyo.cl and push straight to the LAN Gitea instance. Internal Gitea is plain HTTP, so the docker daemon on the LXC needs 'insecure-registries' set, and the gitea-runner-lxc has to be re-registered against the new URL (separate manual steps; not in this repo). - ci.yml: docker login, both docker tag, both push_with_retry, and docker logout now target 10.5.0.195:3000 - compose.yaml: image URL switched to 10.5.0.195:3000 The CI workflow itself, the Dockerfile, and the build command are unchanged - only the registry target moved. --- .gitea/workflows/ci.yml | 12 ++++++------ compose.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index aab6123..ff89c21 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -82,11 +82,11 @@ jobs: echo "=== Build Docker image ===" docker buildx build -t shot-crafter-calculator:ci . echo "=== Login to Gitea Registry ===" - echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.danielarroyo.cl -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin + echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 10.5.0.195:3000 -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin SHORT_SHA=$(echo "$GITHUB_SHA" | cut -c1-7) echo "=== Tag ===" - docker tag shot-crafter-calculator:ci gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest - docker tag shot-crafter-calculator:ci gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:${SHORT_SHA} + docker tag shot-crafter-calculator:ci 10.5.0.195:3000/proyectos/shot-crafter-calculator:latest + docker tag shot-crafter-calculator:ci 10.5.0.195:3000/proyectos/shot-crafter-calculator:${SHORT_SHA} push_with_retry() { local ref="$1" @@ -105,8 +105,8 @@ jobs: return 1 } - push_with_retry "gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest" - push_with_retry "gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:${SHORT_SHA}" + push_with_retry "10.5.0.195:3000/proyectos/shot-crafter-calculator:latest" + push_with_retry "10.5.0.195:3000/proyectos/shot-crafter-calculator:${SHORT_SHA}" echo "=== Logout ===" - docker logout gitea.danielarroyo.cl + docker logout 10.5.0.195:3000 echo "=== Done ===" diff --git a/compose.yaml b/compose.yaml index d525dd1..0948664 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: shot-crafter: - image: gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest + image: 10.5.0.195:3000/proyectos/shot-crafter-calculator:latest container_name: shot-crafter restart: unless-stopped ports: