修改基础镜像1
This commit is contained in:
@@ -195,26 +195,10 @@ jobs:
|
|||||||
uses: http://git.missmoc.top/mocheng/build-push-action@v5
|
uses: http://git.missmoc.top/mocheng/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: "${{ github.workspace }}"
|
context: "${{ github.workspace }}"
|
||||||
file: "${{ github.workspace }}/${{ matrix.service }}/Dockerfile"
|
file: ${{ github.workspace }}/${{ matrix.service }}/Dockerfile
|
||||||
tags: "172.100.10.45:3000/by2025/smartparks/${{ matrix.service }}:latest"
|
tags: 172.100.10.45:3000/by2025/smartparks/${{ matrix.service }}:latest
|
||||||
|
# tags: ${{ secrets.REGISTRY_URL }}/by2025/$(echo ${{ matrix.service }} | tr 'A-Z' 'a-z'):${{ github.sha }}
|
||||||
|
# tags: ${{ secrets.REGISTRY_URL }}/by2025/${{ matrix.service }}:2.0.4
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
# 关键配置:允许该仓库使用HTTP
|
|
||||||
daemon-config: |
|
|
||||||
{
|
|
||||||
"insecure-registries": ["172.100.10.45:3000"]
|
|
||||||
}
|
|
||||||
|
|
||||||
# 确保buildx使用正确的网络配置
|
|
||||||
driver-opts: |
|
|
||||||
network=host
|
|
||||||
# context: "${{ github.workspace }}"
|
|
||||||
# file: ${{ github.workspace }}/${{ matrix.service }}/Dockerfile
|
|
||||||
# tags: 172.100.10.45:3000/by2025/smartparks/${{ matrix.service }}:latest
|
|
||||||
# # tags: ${{ secrets.REGISTRY_URL }}/by2025/$(echo ${{ matrix.service }} | tr 'A-Z' 'a-z'):${{ github.sha }}
|
|
||||||
# # tags: ${{ secrets.REGISTRY_URL }}/by2025/${{ matrix.service }}:2.0.4
|
|
||||||
# push: true
|
|
||||||
# cache-from: type=gha
|
|
||||||
# cache-to: type=gha,mode=max
|
|
||||||
|
Reference in New Issue
Block a user