diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08a80e10958c2a65fc036db6c119f08bf49efd58..faaecdc29a7429071a38a111eadcb232edd15099 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -74,40 +74,6 @@ pages: - public only: - master - -deploy-webserver: - stage: deploy - image: centos:centos7 - before_script: - # install ssh-agent - - 'which ssh-agent || ( yum -y install openssh-clients )' - # run ssh-agent - - eval $(ssh-agent -s) - # add ssh key stored in SSH_PRIVATE_KEY variable to the agent store - - ssh-add <(echo "$SSH_PRIVATE_KEY") - # disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks) - # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config - - mkdir -p ~/.ssh - - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - script: - - yum install -y epel-release wget - - yum install -y gcc - - yum install -y https://repo.ius.io/ius-release-el7.rpm - - yum update -y - - yum install -y python36u python36u-libs python36u-devel python36u-pip openssl-devel libffi-devel - - python3.6 -m pip install --upgrade pip - - export PYTHONIOENCODING=utf8 - - export LANG=en_US.UTF-8 - - export LANGUAGE=en_US:en - - export LC_ALL=en_US.UTF-8 - - python3.6 -m pip install ansible - - python3.6 -m pip install virtualenv - - cd ansible - - whoami - - ansible-playbook -vvv -i ./hosts_deploy deploy.yaml --extra-vars "@params-server.json" - only: - - master - .build: