diff --git a/.drone.yml b/.drone.yml index 323c2f3..635162d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,32 +26,3 @@ steps: environment: ENVIRONMENT: "hi" - - - name: tar-prod-push - privileged: true - image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:75 - settings: - tar: ops-api-${DRONE_BUILD_NUMBER}.tar - commands: - - suffix=$(echo "${IMAGE}" | awk -F '/' '{split($NF, a, ":"); print a[2]}') - - echo ${suffix} - - docker images | grep "ops-api" | grep ${suffix} | awk '{print $3}' | xargs docker rmi - when: - target: [ "hi","prod" ] - - - name: deployment-replace-prod - image: repository.241210.com/repository/base/kubectl:4 - commands: - - cd web/ - - sed -i 's!IMAGE_PATH:IMAGE_TAG!'${IMAGE}'!g' deployment.yaml - when: - target: [ "exp","prod" ] - - - name: deploy-prod - image: repository.241210.com/repository/base/kubectl:4 - commands: - - cd web/ - - kubectl --kubeconfig /kube/${CI_BUILD_TARGET} apply -f deployment.yaml - when: - target: [ "exp","prod" ] -