fix(ci): configure docker to use HTTP for internal registry
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 <noreply@anthropic.com>
This commit is contained in:
@@ -57,10 +57,16 @@ jobs:
|
|||||||
|
|
||||||
echo "IMAGE_LATEST=${IMAGE_BASE}:latest" >> $GITHUB_OUTPUT
|
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
|
- name: Login to registry
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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
|
- name: Build and push API image
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -127,10 +133,16 @@ jobs:
|
|||||||
|
|
||||||
echo "IMAGE_LATEST=${IMAGE_BASE}:frontend-latest" >> $GITHUB_OUTPUT
|
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
|
- name: Login to registry
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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
|
- name: Build and push frontend image
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
Reference in New Issue
Block a user