From 13fe383116c087b3e71c37fb5d6b864f08a52682 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sun, 15 Mar 2026 00:13:46 -0400 Subject: [PATCH] fix(ci): use explicit port 80 for insecure registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove http:// prefix from docker login (Docker ignores it) - Add :80 to registry address so Docker uses HTTP - Remove redundant daemon.json config (configured at daemon level) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build.yaml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index dd6800a..93e445f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,7 +27,7 @@ jobs: id: tags shell: sh run: | - REGISTRY="gitea.gitea.svc.cluster.local" + REGISTRY="gitea.gitea.svc.cluster.local:80" REPO_OWNER="${{ gitea.repository_owner }}" REPO_NAME="${{ gitea.repository }}" @@ -57,16 +57,10 @@ 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:80 -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin - name: Build and push API image shell: sh @@ -103,7 +97,7 @@ jobs: id: tags shell: sh run: | - REGISTRY="gitea.gitea.svc.cluster.local" + REGISTRY="gitea.gitea.svc.cluster.local:80" REPO_OWNER="${{ gitea.repository_owner }}" REPO_NAME="${{ gitea.repository }}" @@ -133,16 +127,10 @@ 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:80 -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin - name: Build and push frontend image shell: sh