浏览代码

更新 '.drone.yml'

rentianliang 1 年之前
父节点
当前提交
b961ab3989
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .drone.yml

+ 2 - 2
.drone.yml

@@ -16,7 +16,7 @@ steps:
       #dockerfile: Dockerfile
       repo: harbor.sxidc.com/fs/${DRONE_REPO_NAME//_/-}
       registry: harbor.sxidc.com
-      tags: ${DRONE_BUILD_NUMBER}
+      tags: ${DRONE_COMMIT_BRANCH/master/latest}-${DRONE_BUILD_NUMBER}
       username:
         from_secret: harbor_username
       password:
@@ -30,7 +30,7 @@ steps:
       repo_namespace: ywzx
       repo_name: ${DRONE_REPO_NAME//_/-}
       yaml: ./deployment-app.yaml
-      image_addr: harbor.sxidc.com/fs/${DRONE_REPO_NAME//_/-}:${DRONE_BUILD_NUMBER}
+      image_addr: harbor.sxidc.com/fs/${DRONE_REPO_NAME//_/-}:${DRONE_COMMIT_BRANCH/master/latest}-${DRONE_BUILD_NUMBER}
       kubeconfig:
         from_secret: test_kubeconfig