0👍
why scp fails
Check is your dist
directory exists and has smth inside: - ls dist
(you will see output of the command in "job console" in gitlab)
I think that directory is empty then need check build_app
job
how to run job only on merge requests?
add only: - merge_requests
for job read more
deploy:
stage: deploy
script: ./deploy
only:
- merge_requests
misc
I suggest use rsync
instead of scp
it’s employs a special delta transfer algorithm and a few optimizations to make the operation faster.
Source:stackexchange.com