Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created August 16, 2020 16:24
Show Gist options
  • Save wshihadeh/bc17ab05249310b2d2d1d8a09581f65e to your computer and use it in GitHub Desktop.
Save wshihadeh/bc17ab05249310b2d2d1d8a09581f65e 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
args: up -d
pre_deployment_command_args: 'bundle exec rake db:migrate'
docker_prune: 'true'
pull_images_first: 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment