diff --git a/.drone.yml b/.drone.yml index 1bd4481..3290e7b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,8 +31,7 @@ steps: settings: dockerfile: Dockerfile context: dir:///drone/src - no_push: true - #destination: ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA:-build-${DRONE_BUILD_NUMBER}} + destination: ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} verbosity: debug - name: dev-deploy @@ -75,14 +74,10 @@ steps: environment: DOCKER_CONFIG: from_secret: docker_config - commands: - - ls -la - - cat Dockerfile - - >- - /kaniko/executor - --context . - --destination ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} - --destination ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0 + settings: + dockerfile: Dockerfile + context: dir:///drone/src + destination: ccr.ccs.tencentyun.com/violin/todo-backend:v1.0.0 - name: prod-deploy image: ccr.ccs.tencentyun.com/violin/kubectl:latest