For example, I need to run the following command:
image: atlassian/default-image:latest
pipelines:
default:
- step:
script:
- apt-get install sshpass
- sshpass -p $SSH_PASS ssh -o StrictHostKeyChecking=no -p $SSH_PORT $SSH_USER@$SSH_IP 'echo "$SSH_PASS" | sudo -S python3 /var/www/deploy.py -t api -gu $GITUSER -gp $GITPASSWORD'
- echo "Done"
It's okay if I just write the lines I need, but in this form the variables are not interpreted. How do I insert them correctly?