ci: 从发布流程中移除docker登录步骤

移除Makefile中自动登录docker的步骤,因为登录凭证应通过更安全的方式处理
This commit is contained in:
shanshanzhong 2025-07-23 07:51:46 -07:00
parent df7fcddb40
commit bb5d6974fa
2 changed files with 2 additions and 2 deletions

View File

@ -76,4 +76,5 @@ jobs:
make build-linux
make docker
make publish-docker
make docker-run
make docker-run

View File

@ -51,7 +51,6 @@ docker: # Build the docker image | 构建 docker 镜像
.PHONY: publish-docker
publish-docker: # Publish docker image | 发布 docker 镜像
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin ${REPO}
docker tag ${API_IMAGE_NAME}:${VERSION} ${API_IMAGE_NAME}:latest
docker push ${API_IMAGE_NAME}:latest
@echo "Publish docker successfully"