修改基础镜像
Some checks failed
/ build-parent-pom (push) Successful in 2m3s
/ build-and-push-services (ruoyi-auth) (push) Failing after 1m7s
/ build-and-push-services (ruoyi-gateway) (push) Failing after 1m9s
/ build-and-push-services (ruoyi-modules/Property) (push) Failing after 1m39s
/ build-and-push-services (ruoyi-modules/Sis) (push) Failing after 34s
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Failing after 1m3s
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Waiting to run
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Waiting to run
/ build-and-push-services (ruoyi-seata-server) (push) Waiting to run
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Waiting to run
/ build-and-push-services (ruoyi-snailjob-server) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Waiting to run
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Has been cancelled
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Has been cancelled

This commit is contained in:
mocheng 2025-08-14 16:52:36 +08:00
parent d9264b65ab
commit a8b21eeaa3

View File

@ -195,10 +195,26 @@ jobs:
uses: http://git.missmoc.top/mocheng/build-push-action@v5
with:
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
file: "${{ github.workspace }}/${{ matrix.service }}/Dockerfile"
tags: "172.100.10.45:3000/by2025/smartparks/${{ matrix.service }}:latest"
push: true
cache-from: type=gha
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