Compare commits

...

1 Commits

Author SHA1 Message Date
william 8e3af50215 Fix variable name in drone.yml
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2022-07-21 10:58:58 -04:00
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ steps:
environment: environment:
<<: *environment <<: *environment
commands: commands:
- echo -n "latest-release,$CRE_RELEASE" > .tags - echo -n "latest-release,$DOCS_RELEASE" > .tags
when: when:
event: event:
- tag - tag
@ -56,7 +56,7 @@ steps:
image: alpine:latest image: alpine:latest
environment: environment:
<<: *environment <<: *environment
CRE_REGISTRY_IMAGE: *docker-registry-repo DOCS_REGISTRY_IMAGE: *docker-registry-repo
DEPLOY_SERVER: DEPLOY_SERVER:
from_secret: deploy_server from_secret: deploy_server
DEPLOY_SERVER_USERNAME: DEPLOY_SERVER_USERNAME:
@ -77,7 +77,7 @@ steps:
- ssh-keyscan -p $DEPLOY_SERVER_SSH_PORT -H $DEPLOY_SERVER >> ~/.ssh/known_hosts - 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' - '[[ -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 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" - 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: when:
event: event: