I try to build and push my react build folder with gitlab-ci.yml Build and test passes but deploy failed with this error : If I do the same script in my locale file, it works !
lftp -e "mirror -R build/ ./test ; quit" -u $USERNAME,$PASSWORD $HOST mirror: Access failed: /builds/myGitLab/myGitlabProjectName/build: No such file or directory lftp: MirrorJob.cc:242: void MirrorJob::JobFinished(Job*): Assertion `transfer_count>0' failed. /bin/bash: line 97: 275 Aborted (core dumped) lftp -e "mirror -R build/ ./test ; quit" -u $USERNAME,$PASSWORD $HOST ERROR: Job failed: exit code 1
Here is my all yml file :
image: node:13.8 stages: - build - test - deploy build: stage: build script: - npm install - npm run build test: stage: test script: - yarn - yarn test deploy: script: - apt-get update && apt-get install -y lftp - lftp -e "mirror -R build/ ./test ; quit" -u $USERNAME,$PASSWORD $HOST
enter code here