From 6acad4cff777ffaddd9cbde9c15ae76292269cbe Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sat, 14 Mar 2026 19:37:14 -0400 Subject: [PATCH] fix(ci): configure docker to use HTTP for internal registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add insecure-registries configuration to allow HTTP connections to gitea.gitea.svc.cluster.local instead of HTTPS. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2f8bb83..91c6979 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -57,10 +57,16 @@ jobs: echo "IMAGE_LATEST=${IMAGE_BASE}:latest" >> $GITHUB_OUTPUT + - name: Configure Docker for insecure registry + shell: sh + run: | + mkdir -p /etc/docker + echo '{"insecure-registries": ["gitea.gitea.svc.cluster.local"]}' > /etc/docker/daemon.json + - name: Login to registry shell: sh run: | - echo "${{ secrets.PERSONAL_TOKEN }}" | docker login http://gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin - name: Build and push API image shell: sh @@ -127,10 +133,16 @@ jobs: echo "IMAGE_LATEST=${IMAGE_BASE}:frontend-latest" >> $GITHUB_OUTPUT + - name: Configure Docker for insecure registry + shell: sh + run: | + mkdir -p /etc/docker + echo '{"insecure-registries": ["gitea.gitea.svc.cluster.local"]}' > /etc/docker/daemon.json + - name: Login to registry shell: sh run: | - echo "${{ secrets.PERSONAL_TOKEN }}" | docker login http://gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin - name: Build and push frontend image shell: sh