Which directory does gitlab CD/CI deploy projects?
I deployed my code to AWS EC2 instance, I cannot find the project on the server even though the deployment was successful.
Below is my yaml file
`#build
build:
stage: build
script: echo "building"
#Production stage
deploy:
stage: deploy
before_script:
#generate ssh key
- mkdir -p ~/.ssh
- echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- bash .gitlab-deploy.sh
environment:
name: production
url: ec2-54-67-88-159.us-west-1.compute.amazonaws.com
when: manual
only:
- master`
.gitlab-deploy.sh script
for i in ${!array[@]}; do echo "Deploy project on server ${array[i]}" ssh ec2-user@${array[i]} "cd Jenkins_deployment_tutorial && git pull origin master" done
Please what does highlighted directory mean cd Jenkins_deployment_tutorial && git pull origin master?
Is it my server directory where the code should be deployed or my gitlab repository?
Thank you