From 4df7cdc9c65fc69764001e54dce4c2571c31ffc6 Mon Sep 17 00:00:00 2001 From: Agent Date: Fri, 20 Mar 2026 15:27:40 +0000 Subject: [PATCH] Fix Drone variable: DRONE_COMMIT_SHA --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2cf2b65..d1c8187 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,7 +33,7 @@ steps: settings: repo: ccr.ccs.tencentyun.com/todo-test/todo-frontend tags: - - {{ .Commit SHA }} + - {{ DRONE_COMMIT_SHA }} - latest username: from_secret: registry_username @@ -43,7 +43,7 @@ steps: - name: deploy-to-k8s image: bitnami/kubectl:latest commands: - - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/todo-test/todo-frontend:{{ .Commit SHA }} -n todo-test + - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/todo-test/todo-frontend:{{ DRONE_COMMIT_SHA }} -n todo-test - kubectl rollout status deployment/todo-frontend -n todo-test environment: KUBECONFIG: @@ -94,7 +94,7 @@ steps: settings: repo: ccr.ccs.tencentyun.com/todo-prod/todo-frontend tags: - - {{ .Commit SHA }} + - {{ DRONE_COMMIT_SHA }} - v1.0.0 username: from_secret: registry_username @@ -104,7 +104,7 @@ steps: - name: deploy-to-k8s image: bitnami/kubectl:latest commands: - - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/todo-prod/todo-frontend:{{ .Commit SHA }} -n todo-prod + - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/todo-prod/todo-frontend:{{ DRONE_COMMIT_SHA }} -n todo-prod - kubectl rollout status deployment/todo-frontend -n todo-prod environment: KUBECONFIG: