Commit 7ade46e0 authored by John Red Medrano's avatar John Red Medrano

Update .gitlab-ci.yml

parent e2900842
Pipeline #262 failed with stages
in 51 seconds
......@@ -37,7 +37,14 @@ buid_dev:
cleanup_build_dev:
stage: cleanup_build
image: ubuntu
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y)'
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$CENTOS_SERVER" | ssh-add - > ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh -tt centos@13.251.192.208 "sudo rm -rf /var/www/gitlab_variable_red/dev"
when: on_failure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment