Make sshpass command available to ci/cd pipeline
publish:
image: primus852/docker-sshpass
script:
- npm run build --prod --output-path=public
- sshpass -e scp -o 'StrictHostKeyChecking no' -r ../public/* <MYUSER>@<MYHOST>:/srv/apache2/htdocs/<MYPUBLICFOLDER>
Note: in this example, you have to set the environment variable SSHPASS in "Settings > CI / CD > Variables"
Content type
Image
Digest
Size
109.1 MB
Last updated
almost 7 years ago
docker pull primus852/docker-sshpass