This is my gitlab-ci.yml file
stages:
- build_dev
build_dev:
stage: build_dev
only:
refs:
- master
tags:
- Fluffa-fe
script:
- pwd
- ls -lah
- cd /var/www/html/fluffa.company/fe
- git pull
- CI=false && npm install && npm run build
- chown -R www-data:www-data /var/www/html/
My job fails
$ cd /var/www/html/fluffa.company/fe
bash: line 116: cd: /var/www/html/fluffa.company/fe: No such file or directory
ERROR: Job failed: exit status 1
Why? Does it seem it it can not find container path?
I checked on my server Docker container mount points
"Mounts": [
{
"Type": "bind",
"Source": "/webfolder/docker-lab/dev/dev_fluffa/fe/ssh",
"Destination": "/root/.ssh",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/webfolder/fluffa.company",
"Destination": "/var/www/html/fluffa.company",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
How to fix this? It seems that I am not at right location?