2023-01-12 19:16:06 -05:00
|
|
|
name: Docker Remote (SSH) Deployment
|
2021-12-25 23:28:35 +07:00
|
|
|
description: A GitHub Action that supports docker-compose and Docker Swarm deployments
|
|
|
|
|
inputs:
|
|
|
|
|
remote_docker_host:
|
2024-03-07 16:29:14 +08:00
|
|
|
description: Remote Docker host.
|
|
|
|
|
required: true
|
|
|
|
|
remote_docker_user:
|
|
|
|
|
description: Remote Docker user.
|
2021-12-25 23:28:35 +07:00
|
|
|
required: true
|
|
|
|
|
remote_docker_port:
|
|
|
|
|
description: Remote Docker ssh port ie (22).
|
|
|
|
|
required: false
|
|
|
|
|
default: '22'
|
|
|
|
|
ssh_public_key:
|
|
|
|
|
description: Remote Docker SSH public key eg (~/.ssh/rsa_id.pub).
|
|
|
|
|
required: true
|
|
|
|
|
ssh_private_key:
|
|
|
|
|
description: SSH private key used to connect to the docker host eg (~/.ssh/rsa_id).
|
|
|
|
|
required: true
|
2024-03-07 16:29:14 +08:00
|
|
|
ssh_proxy_cmd:
|
|
|
|
|
description: SSH ProxyCommand used to connect to the docker host.
|
|
|
|
|
required: false
|
2021-12-25 23:28:35 +07:00
|
|
|
args:
|
|
|
|
|
description: Deployment command args.
|
|
|
|
|
required: true
|
|
|
|
|
deploy_path:
|
2024-03-07 16:29:14 +08:00
|
|
|
description: The absolute path on remote docker host to deploy, default rely on repo working directory .
|
2021-12-25 23:28:35 +07:00
|
|
|
required: false
|
|
|
|
|
stack_file_name:
|
2024-03-07 16:29:14 +08:00
|
|
|
description: Compose configuration files.
|
|
|
|
|
required: false
|
|
|
|
|
env_file_name:
|
|
|
|
|
description: Specify an alternate environment file.
|
2021-12-25 23:28:35 +07:00
|
|
|
required: false
|
|
|
|
|
keep_files:
|
|
|
|
|
description: Number of the files to be kept on the server. Default is 3.
|
|
|
|
|
required: false
|
|
|
|
|
docker_prune:
|
|
|
|
|
description: A boolean input to trigger docker prune command. Default is false.
|
|
|
|
|
required: false
|
|
|
|
|
pre_deployment_command_args:
|
|
|
|
|
description: The args for the pre deploument command.
|
|
|
|
|
required: false
|
|
|
|
|
docker_registry_username:
|
|
|
|
|
description: The docker registry username.
|
|
|
|
|
required: false
|
|
|
|
|
docker_registry_password:
|
|
|
|
|
description: The docker registry password.
|
|
|
|
|
required: false
|
|
|
|
|
docker_registry_uri:
|
|
|
|
|
description: The docker registry URI. Default is https://registry.hub.docker.com.
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
|
|
runs:
|
|
|
|
|
using: docker
|
|
|
|
|
image: Dockerfile
|
|
|
|
|
|
|
|
|
|
branding:
|
|
|
|
|
icon: send
|
|
|
|
|
color: green
|
|
|
|
|
|