Loading gitlab-ci.yml +2 −4 Original line number Diff line number Diff line Loading @@ -71,16 +71,14 @@ deploy: - git config --global credential.helper store && echo "https://${GIT_LOGIN}:${GIT_PASSWORD}@$(echo ${GIT_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" > ~/.git-credentials - mkdir -p /tmp/checkout && git clone "${GIT_URL}" /tmp/checkout && cd /tmp/checkout - | export ANSIBLE_CONFIG="${INVENTORY_DIRECTORY}/ansible.cfg" if [ -s ansible.cfg ]; then export ANSIBLE_CONFIG=ansible.cfg fi if [ -s run.sh ]; then if [ -s setup.sh ]; then sh setup.sh fi sh run.sh elif [ -s deploy.yml ]; then elif [ -s "${PLAYBOOK:-deploy.yml}" ]; then if [ -s requirements.yml ]; then ansible-galaxy install -r requirements.yml fi Loading Loading
gitlab-ci.yml +2 −4 Original line number Diff line number Diff line Loading @@ -71,16 +71,14 @@ deploy: - git config --global credential.helper store && echo "https://${GIT_LOGIN}:${GIT_PASSWORD}@$(echo ${GIT_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" > ~/.git-credentials - mkdir -p /tmp/checkout && git clone "${GIT_URL}" /tmp/checkout && cd /tmp/checkout - | export ANSIBLE_CONFIG="${INVENTORY_DIRECTORY}/ansible.cfg" if [ -s ansible.cfg ]; then export ANSIBLE_CONFIG=ansible.cfg fi if [ -s run.sh ]; then if [ -s setup.sh ]; then sh setup.sh fi sh run.sh elif [ -s deploy.yml ]; then elif [ -s "${PLAYBOOK:-deploy.yml}" ]; then if [ -s requirements.yml ]; then ansible-galaxy install -r requirements.yml fi Loading