11## github-action-ssh-docker-compose
2- Simple github action to run docker- compose on remote host.
2+ Simple github action to run docker compose on remote host.
33
44This action packs contents of the action workspace into archive.
55Logs into remote host via ssh. Unpacks the workspace there and runs
6- ` docker- compose up -d ` command.
6+ ` docker compose up -d ` command.
77
88Comparing to other actions with similar behavior this one does not use any
99unknown docker-images. It is entirely built from Dockerfile on top of
@@ -18,14 +18,14 @@ unknown docker-images. It is entirely built from Dockerfile on top of
1818 * ` ssh_user ` - Remote user which should have access to docker.
1919 * ` docker_compose_prefix ` - Project name passed to compose. Each docker
2020 container will have this prefix in name.
21- * ` docker_compose_filename ` - Path to the docker- compose file in the repository.
22- * ` use_stack ` - Use docker stack instead of docker- compose.
23- * ` docker_compose_down ` - Execute docker- compose-down.
21+ * ` docker_compose_filename ` - Path to the docker compose file in the repository.
22+ * ` use_stack ` - Use docker stack instead of docker compose.
23+ * ` docker_compose_down ` - Execute docker compose-down.
2424
2525# Usage example
2626
27- Let's say we have a repo with single docker- compose file in it and remote
28- ubuntu based server with docker and docker- compose installed.
27+ Let's say we have a repo with single docker compose file in it and remote
28+ ubuntu based server with docker and docker compose installed.
2929
30301 . Generate key pair, do not use a password here.
3131
@@ -100,7 +100,7 @@ jobs:
100100
101101In case you want to use some advanced features like secrets. You'll need to
102102setup a docker swarm cluster and use docker stack command instead of the plain
103- docker- compose. To do that just set ` use_stack ` input to ` "true" ` :
103+ docker compose. To do that just set ` use_stack ` input to ` "true" ` :
104104
105105```
106106name: Deploy
@@ -125,8 +125,8 @@ jobs:
125125 use_stack: 'true'
126126```
127127
128- # Down deploy (Docker-compose down)
129- If you need to run a docker- compose down to do a clean rollback. Only one down of the
128+ # Down deploy (Docker Compose down)
129+ If you need to run a docker compose down to do a clean rollback. Only one down of the
130130services will be executed To do that just set ` docker_compose_down ` input to ` "true" ` :
131131```
132132name: Deploy
0 commit comments