Sign inSign up

primus852/docker-sshpass

By primus852

Updated almost 7 years ago

Deploy with sshpass

Image
0

939

primus852/docker-sshpass repository overview

docker-sshpass

Make sshpass command available to ci/cd pipeline

Usage (gitlab-ci.yml to copy build to live server)

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"

Tag summary

Content type

Image

Digest

Size

109.1 MB

Last updated

almost 7 years ago

docker pull primus852/docker-sshpass