111
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
编码猿
2025-09-09 09:42:59 +08:00
parent 8e1aa5e659
commit 0739822ced

View File

@@ -10,9 +10,10 @@ steps:
- name: docker-socket - name: docker-socket
path: /var/run/docker.sock path: /var/run/docker.sock
environment: environment:
# 在这里重新声明以确保优先级 - name: APP_NAME
APP_NAME: node-app value: node-app
CONTAINER_NAME: node-app-prod - name: CONTAINER_NAME
value: node-app-prod
commands: commands:
# 直接在命令中设置变量避免shell解释器问题 # 直接在命令中设置变量避免shell解释器问题
- CURRENT_TAG=$(echo ${DRONE_COMMIT_SHA} | cut -c1-8) - CURRENT_TAG=$(echo ${DRONE_COMMIT_SHA} | cut -c1-8)