Browse Source

更新 '.drone.yml'

rentianliang 1 year ago
parent
commit
d6114fee8d
1 changed files with 2 additions and 2 deletions
  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_COMMIT_BRANCH/master/latest}
+      tags: ${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_COMMIT_BRANCH/master/latest}
+      image_addr: harbor.sxidc.com/fs/${DRONE_REPO_NAME//_/-}:${DRONE_BUILD_NUMBER}
       kubeconfig:
         from_secret: test_kubeconfig