Docker image for CircleCI, deployment tool. Include rsync and lftp.
1.3K
Docker image for CircleCI, the deployment tool. Include rsync and lftp.
Using this image to deploy your website on CircleCI 2.0 can be as simple as using the following configuration in .circleci/config.yml:
version: 2
jobs:
deploy:
<<: *defaults
docker:
- image: businessbrain/circleci-deploy:latest
steps:
- add_ssh_keys:
fingerprints:
- "b1:86:12:9d:1a:28:a8:22:78:e7:44:ac:32:fc:64:d6"
- "e1:6e:c3:b0:f3:95:7e:53:bc:e6:9e:e7:fb:7b:20:d7"
- deploy_over_ssh:
name: Deploy Over SSH
command: |
if [ "${CIRCLE_BRANCH}" == "production" ]; then
rsync -e "ssh -o StrictHostKeyChecking=no" \
-vrm --delete \
./dist/ [email protected]:/var/www/html
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
rsync -e "ssh -o StrictHostKeyChecking=no" \
-vrm --delete \
./dist/ [email protected]:/var/www/html
else
rsync -e "ssh -o StrictHostKeyChecking=no" \
-vrm --delete \
./dist/ [email protected]:/var/www/html
fi
Content type
Image
Digest
Size
5.8 MB
Last updated
almost 8 years ago
docker pull businessbrain/circleci-deploy