更新 .gitea/workflows/test.yml
This commit is contained in:
@@ -25,10 +25,8 @@ jobs:
|
||||
# 可以直接使用本机的 docker build 命令,不再需要下载外网的 buildx action。
|
||||
- name: 构建并推送镜像 (本地 Docker)
|
||||
run: |
|
||||
# 允许本地 docker 引擎推送到不安全的 http 私有仓
|
||||
# 注意:确保运行运行此任务的机器 /etc/docker/daemon.json 中配置了 "insecure-registries": ["192.168.10.236:31051"]
|
||||
|
||||
IMAGE_NAME="192.168.10.236:31051/你的应用名"
|
||||
# 💡 请把下面的 nextjs-app 替换成你实际的英文应用名称(不要用中文)
|
||||
IMAGE_NAME="192.168.10.236:31051/nextjs-app"
|
||||
SHA_TAG="${{ steps.vars.outputs.sha_short }}"
|
||||
|
||||
docker build -t ${IMAGE_NAME}:latest -t ${IMAGE_NAME}:${SHA_TAG} -f ./Dockerfile .
|
||||
|
||||
Reference in New Issue
Block a user