Commit da4395ae authored by John Red Medrano's avatar John Red Medrano

Update .gitlab-ci.yml

parent 0b27cb95
Pipeline #122 passed with stage
in 37 seconds
......@@ -3,9 +3,6 @@ stages:
build website:
stage: build
image: ubuntu
variables:
GIT_STRATEGY: clone
GIT_CHECKOUT: "false"
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
......@@ -14,6 +11,10 @@ build website:
- echo "$CENTOS_SERVER" | ssh-add - > ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- apt-get install git-core -y
variables:
GIT_STRATEGY: clone
GIT_CHECKOUT: "false"
script:
- ssh -tt centos@13.251.192.208 "sudo mkdir /var/www/red-ci-cd"
- echo "$testfile" > tes.txt
- git checkout -B RMS.v2.2
\ No newline at end of file
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