Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created August 16, 2020 16:27
Show Gist options
  • Save wshihadeh/1e2b4e6dd1a93c9f3b82a3cbc1b75f1a to your computer and use it in GitHub Desktop.
Save wshihadeh/1e2b4e6dd1a93c9f3b82a3cbc1b75f1a to your computer and use it in GitHub Desktop.
DeployDocker
- name: Deploy to Docker Host
uses: wshihadeh/docker-deployment-action@v1
with:
remote_docker_host: user@myswarm.com
ssh_private_key: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }}
ssh_public_key: ${{ secrets.DOCKER_SSH_PUBLIC_KEY }}
deployment_mode: docker-compose
copy_stack_file: true
deploy_path: /root/my-deployment
stack_file_name: docker-compose.yaml
keep_files: 5
args: up -d
docker_prune: 'false'
pull_images_first: 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment