forked from 0xWheatyz/SPARC
fix(ci): use explicit port 80 for insecure registry
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user