添加 insecure registry 配置解决 HTTP 连接问题
This commit is contained in:
@@ -62,14 +62,20 @@ jobs:
|
||||
echo "VERSION=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Docker Setup Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."git.viaeon.com"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.viaeon.com
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.CI_TOKEN }}
|
||||
env:
|
||||
DOCKER_BUILDKIT: 0
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
|
||||
Reference in New Issue
Block a user