So I was writing a script that uses my artifact and deploys it to my digital ocean droplet.
But the Gitlab CI shows that I have an invalid YAML configuration in this job
Here is the script for it…
deploy_client:
only:
- master
stage: deploy
script:
- apt-get update -qq
- apt-get install -qq git
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh goutambseervi@159.65.156.240 -t -t -v -o StrictHostKeyChecking=no 'cd /var/www/html; curl -L --header "PRIVATE-TOKEN: ${PRIVATE-TOKEN}" "https://gitlab.com/api/v4/projects/wikiquotesapp/jobs/artifacts/master/download?job=build_angular" -o download;'
Can anyone help me fix this error