From a5f7060fb1adf6d130aef13727c312b87bef6331 Mon Sep 17 00:00:00 2001 From: nurdotnet <278048682+nurdotnet@users.noreply.github.com> Date: Thu, 23 Apr 2026 09:11:19 +0500 Subject: [PATCH] deploy: local docker registry at 127.0.0.1:5001 (primary), ghcr as backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stage's external pulls from ghcr.io flap on KZ network — the self-hosted runner pushes images into a local registry:2 (systemd-managed, /opt/food-market-data/docker-registry) and docker-compose now pulls from localhost:5001 via \$REGISTRY. ghcr.io is still tagged and pushed as off-site backup, but ghcr push failure no longer fails the build. Setup done on the host (not in workflow): - systemd unit food-market-registry.service (enabled, restart on failure) - /etc/docker/daemon.json: \"insecure-registries\": [\"127.0.0.1:5001\"] Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/deploy-stage.yml | 1 + .github/workflows/docker.yml | 35 +++++++++++++++++++++++++----- deploy/docker-compose.yml | 4 ++-- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index ab1b1e5..3a53456 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -39,6 +39,7 @@ jobs: SSH="ssh -p ${{ secrets.STAGE_SSH_PORT }} ${{ secrets.STAGE_SSH_USER }}@${{ secrets.STAGE_SSH_HOST }}" SHA="${{ github.event.workflow_run.head_sha || github.sha }}" $SSH "cat > ~/food-market-stage/deploy/.env" <