Explorar el Código

更新 '.drone.yml'

rentianliang hace 1 año
padre
commit
b961ab3989
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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