I have not used Linux or Gitlab much so this could be a newbie question. ( I have searched online for the same issue)
In a gitlab pipeline I just want to execute a shell script. The runner is linux based runner using "docker+machine" executor.
I am getting Permission denied when try to execute the script
GitLab Pipeline
init-job:
image: "docker.mycompany/templates/terraform"
stage: build
script:
- ls
- whoami
- uname -r
- ./mydeploy.sh
runner output
mydeploy.sh
#!/bin/bash
echo "this is from shell script"
UPDATE 1
after changing the pipeline job to use
chmod +x mydeploy.sh It does not throw error, however it does not execute the script as well. The echo in the .sh script should output the text.

