image: atlassian/default-image:4
pipelines:
branches:
dev:
- step:
name: Deploying build
variable:
USER: $USER
SERVER: $SERVER
script:
- echo "Setting up SSH agent..."
- ssh -v $USER@$SERVER 'cd /home/ubuntu/api && ls && echo $PATH && /bin/bash deploy.sh'
following script works fine where my deploy.sh file can pull code from bitbucket but its unable to find yarn.
what is the problem ? i guess i am in docker environemnt which i got sure by $PATH.
how to fix this issue to connect ec2 and run everything there?