This actions deploys your docker-compose stack file to remote host where docker-compose does not even have to be installed.
Project name of the compose project
Remote host where docker is running
Remote host key information for known_hosts
file
Example: "170.64.163.217 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAABIKvgeZ/twOBTN2B2MY/f931XhbW0p0zXjBZgL+R1IW7D"
SSH port on remote host
SSH user on remote host
SSH private key used to access to remote server. Better save it into repository secrets.
Optional. Docker compose filename. Default: docker-compose.yml
Optional. Name of service to be deployed. By default all services are deployed.
Optional. Recreate containers even if compose file did not change. Default: false
Optional. Pull docker images before deploying. Default: false
Optional. Build docker images before deploying. Default: false
Optional. Pass additional options to docker-compose. For example: --no-deps
steps:
# need checkout before using docker-compose-remote-action
- uses: actions/checkout@v2
- uses: chaplyk/[email protected]
with:
project_name: projectX
ssh_host: 127.0.0.1
known_host_key: ${{ secrets.KNOWN_HOST_KEY }}
ssh_user: username
ssh_key: ${{ secrets.SSH_KEY }}
pull: true
build: true