Loading README.md +2 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ For REDMIC, we use this image from GitLabCI configuration, but you can use it di ``` $ docker run --rm --name docker-deploy \ -e STACK=your-stack-name -e SSH_REMOTE=ssh-user@ssh-host -e GITLAB_DEPLOY_KEY=<your-private-key> \ -e STACK=your-stack-name -e SSH_REMOTE=ssh-user@ssh-host -e GITLAB_DEPLOY_KEY="<your-private-key>" \ registry.gitlab.com/redmic-project/docker/docker-deploy:latest \ <action> <VAR1>=<value1> <VAR2>=<value2> ... ``` Loading @@ -39,6 +39,7 @@ For environment variables, you may define these variables (**bold** are mandator * *DEPLOY_DIR_NAME*: Default `deploy`. * *DEFAULT_DEPLOY_FILES*: Default `docker-compose*.yml .env`. * *REGISTRY_USER*: Default `gitlab-ci-token`. * *SERVICES_TO_CHECK*: Names of services to check, separated by space. * *STATUS_CHECK_RETRIES*: Default `10`. * *STATUS_CHECK_INTERVAL*: Default `20`. * *STATUS_CHECK_DELAY*: Default `120`. Loading script/_do-deploy.sh +2 −2 Original line number Diff line number Diff line Loading @@ -21,10 +21,10 @@ cleanDeployCmd="ssh ${SSH_PARAMS} \"${SSH_REMOTE}\" \"rm -rf ${DEPLOY_HOME}\"" if ssh ${SSH_PARAMS} "${SSH_REMOTE}" "${deployCmd}" then echo -e "${PASS_COLOR}Service successfully deployed!${NULL_COLOR}" echo -e "${PASS_COLOR}Services successfully deployed!${NULL_COLOR}" eval "${cleanDeployCmd}" else echo -e "${FAIL_COLOR}Service deploy failed!${NULL_COLOR}" echo -e "${FAIL_COLOR}Services deploy failed!${NULL_COLOR}" eval "${cleanDeployCmd}" ssh ${SSH_PARAMS} -q -O exit "${SSH_REMOTE}" exit 1 Loading Loading
README.md +2 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ For REDMIC, we use this image from GitLabCI configuration, but you can use it di ``` $ docker run --rm --name docker-deploy \ -e STACK=your-stack-name -e SSH_REMOTE=ssh-user@ssh-host -e GITLAB_DEPLOY_KEY=<your-private-key> \ -e STACK=your-stack-name -e SSH_REMOTE=ssh-user@ssh-host -e GITLAB_DEPLOY_KEY="<your-private-key>" \ registry.gitlab.com/redmic-project/docker/docker-deploy:latest \ <action> <VAR1>=<value1> <VAR2>=<value2> ... ``` Loading @@ -39,6 +39,7 @@ For environment variables, you may define these variables (**bold** are mandator * *DEPLOY_DIR_NAME*: Default `deploy`. * *DEFAULT_DEPLOY_FILES*: Default `docker-compose*.yml .env`. * *REGISTRY_USER*: Default `gitlab-ci-token`. * *SERVICES_TO_CHECK*: Names of services to check, separated by space. * *STATUS_CHECK_RETRIES*: Default `10`. * *STATUS_CHECK_INTERVAL*: Default `20`. * *STATUS_CHECK_DELAY*: Default `120`. Loading
script/_do-deploy.sh +2 −2 Original line number Diff line number Diff line Loading @@ -21,10 +21,10 @@ cleanDeployCmd="ssh ${SSH_PARAMS} \"${SSH_REMOTE}\" \"rm -rf ${DEPLOY_HOME}\"" if ssh ${SSH_PARAMS} "${SSH_REMOTE}" "${deployCmd}" then echo -e "${PASS_COLOR}Service successfully deployed!${NULL_COLOR}" echo -e "${PASS_COLOR}Services successfully deployed!${NULL_COLOR}" eval "${cleanDeployCmd}" else echo -e "${FAIL_COLOR}Service deploy failed!${NULL_COLOR}" echo -e "${FAIL_COLOR}Services deploy failed!${NULL_COLOR}" eval "${cleanDeployCmd}" ssh ${SSH_PARAMS} -q -O exit "${SSH_REMOTE}" exit 1 Loading