修复gitea文件
Some checks failed
Build docker and publish / prepare (20.15.1) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:zero-ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:zero-ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:zero-ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:zero-ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:zero-ppanel-node name:node]) (push) Has been cancelled
Some checks failed
Build docker and publish / prepare (20.15.1) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:zero-ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:zero-ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:zero-ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:zero-ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:zero-ppanel-node name:node]) (push) Has been cancelled
This commit is contained in:
parent
6363a85505
commit
7750daed54
@ -17,8 +17,8 @@ env:
|
||||
SSH_PORT: ${{ vars.SSH_PORT }}
|
||||
SSH_USER: ${{ vars.SSH_USER }}
|
||||
SSH_PASSWORD: ${{ github.ref_name == 'main' && vars.SSH_PASSWORD || vars.DEV_SSH_PASSWORD }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
|
||||
TG_BOT_TOKEN: 8114337882:AAHkEx03HSu7RxN4IHBJJEnsK9aPPzNLIk0
|
||||
TG_CHAT_ID: "-4940243803"
|
||||
VERSION: ${{ github.sha }}
|
||||
BUILDTIME: ${{ github.event.head_commit.timestamp }}
|
||||
|
||||
@ -123,6 +123,22 @@ jobs:
|
||||
go env -w GOPROXY=https://goproxy.cn,direct # 设置 Go Proxy
|
||||
go mod download # 确保所有模块已下载
|
||||
|
||||
- name: 📦 构建并推送 Docker 镜像
|
||||
run: |
|
||||
set -e
|
||||
IMAGE_NAME="${{ matrix.service.image_name }}"
|
||||
DOCKERFILE="${{ matrix.service.dockerfile }}"
|
||||
DEPLOY_TAG="${{ needs.prepare.outputs.docker_tag }}"
|
||||
REPO="${{ env.REPO }}"
|
||||
|
||||
FULL_IMAGE_NAME="${REPO}/${IMAGE_NAME}:${DEPLOY_TAG}"
|
||||
|
||||
echo "🚀 开始构建镜像: ${FULL_IMAGE_NAME} 从 ${DOCKERFILE}"
|
||||
docker build --no-cache -t "${FULL_IMAGE_NAME}" -f "${DOCKERFILE}" .
|
||||
|
||||
echo "⬆️ 推送镜像: ${FULL_IMAGE_NAME}"
|
||||
docker push "${FULL_IMAGE_NAME}"
|
||||
|
||||
|
||||
# ============================================================
|
||||
# Job 3: 部署到服务器
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user