Fix Drone variable syntax to ${DRONE_COMMIT_SHA}
This commit is contained in:
@@ -33,7 +33,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
||||||
tags:
|
tags:
|
||||||
- {{ DRONE_COMMIT_SHA }}
|
- ${DRONE_COMMIT_SHA}
|
||||||
- latest
|
- latest
|
||||||
username:
|
username:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
@@ -43,7 +43,7 @@ steps:
|
|||||||
- name: deploy-to-k8s
|
- name: deploy-to-k8s
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:{{ DRONE_COMMIT_SHA }} -n todo-test
|
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n todo-test
|
||||||
- kubectl rollout status deployment/todo-frontend -n todo-test
|
- kubectl rollout status deployment/todo-frontend -n todo-test
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG:
|
KUBECONFIG:
|
||||||
@@ -94,7 +94,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
repo: ccr.ccs.tencentyun.com/violin/todo-frontend
|
||||||
tags:
|
tags:
|
||||||
- {{ DRONE_COMMIT_SHA }}
|
- ${DRONE_COMMIT_SHA}
|
||||||
- v1.0.0
|
- v1.0.0
|
||||||
username:
|
username:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
@@ -104,7 +104,7 @@ steps:
|
|||||||
- name: deploy-to-k8s
|
- name: deploy-to-k8s
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:{{ DRONE_COMMIT_SHA }} -n todo-prod
|
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n todo-prod
|
||||||
- kubectl rollout status deployment/todo-frontend -n todo-prod
|
- kubectl rollout status deployment/todo-frontend -n todo-prod
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG:
|
KUBECONFIG:
|
||||||
|
|||||||
Reference in New Issue
Block a user