From 8e3af502152011025aaa574e2f759021cf063e8a Mon Sep 17 00:00:00 2001 From: william Date: Thu, 21 Jul 2022 10:58:58 -0400 Subject: [PATCH] Fix variable name in drone.yml --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0f8da2b..639e771 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: environment: <<: *environment commands: - - echo -n "latest-release,$CRE_RELEASE" > .tags + - echo -n "latest-release,$DOCS_RELEASE" > .tags when: event: - tag @@ -56,7 +56,7 @@ steps: image: alpine:latest environment: <<: *environment - CRE_REGISTRY_IMAGE: *docker-registry-repo + DOCS_REGISTRY_IMAGE: *docker-registry-repo DEPLOY_SERVER: from_secret: deploy_server DEPLOY_SERVER_USERNAME: @@ -77,7 +77,7 @@ steps: - ssh-keyscan -p $DEPLOY_SERVER_SSH_PORT -H $DEPLOY_SERVER >> ~/.ssh/known_hosts - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker stop $DEPLOY_CONTAINER_NAME || true && docker rm $DEPLOY_CONTAINER_NAME || true" - - ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker pull $CRE_REGISTRY_IMAGE:$DOCS_RELEASE" + - ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker pull $DOCS_REGISTRY_IMAGE:$DOCS_RELEASE" - ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker run -d -p $DOCS_PORT:80 --name=$DEPLOY_CONTAINER_NAME $DOCS_REGISTRY_IMAGE:$DOCS_RELEASE" when: event: