This commit is contained in:
@@ -14,7 +14,7 @@ steps:
|
||||
APP_NAME: app_name
|
||||
CONTAINER_NAME:
|
||||
from_secret: container_name
|
||||
commands:22
|
||||
commands:
|
||||
# 直接在命令中设置变量,避免shell解释器问题
|
||||
- CURRENT_TAG=$(echo ${DRONE_COMMIT_SHA} | cut -c1-8)
|
||||
- echo "APP_NAME=${APP_NAME}, CONTAINER_NAME=${CONTAINER_NAME}, CURRENT_TAG=${CURRENT_TAG}"
|
||||
|
||||
Reference in New Issue
Block a user