22
33💡 Click on the ** Input Name** for more [ Details] ( #details ) .
44
5- | Input  ; Name | Default  ; Value | Short  ; Description  ; of  ; the  ; Input  ; Value |
6- | :------------------------------------ | :---------------------------------- | :------------------------------------------------------------ |
7- | [ name] ( #name ) ** \* ** | - | Docker Stack/Project Name |
8- | [ file] ( #file ) | ` docker-compose.yaml ` | Docker Stack/Compose File(s) |
9- | [ mode] ( #mode ) ** ¹** | ` swarm ` | Deploy Mode [ ` swarm ` , ` compose ` ] |
10- | [ args] ( #args ) ** ¹** | ` --remove-orphans --force-recreate ` | Additional ** Compose** Arguments |
11- | [ host] ( #host ) ** \* ** | - | Remote Docker Hostname or IP |
12- | [ port] ( #port ) | ` 22 ` | Remote Docker Port |
13- | [ user] ( #user ) ** \* ** | - | Remote Docker Username |
14- | [ pass] ( #pass ) ** \* ** | - | Remote Docker Password |
15- | [ ssh_key] ( #ssh_key ) ** \* ** | - | Remote SSH Key File |
16- | [ disable_keyscan] ( #disable_keyscan ) | ` false ` | Disable SSH Keyscan ` ssh-keyscan ` |
17- | [ env_file] ( #env_file ) | - | Exported Environment File |
18- | [ detach] ( #detach ) ** ²** | ` true ` | Detach Flag, ` false ` , to disable |
19- | [ prune] ( #prune ) ** ²** | ` false ` | Prune Flag, ` true ` , to enable |
20- | [ resolve_image] ( #resolve_image ) ** ²** | ` always ` | Resolve [ ` always ` , ` changed ` , ` never ` ] |
21- | [ registry_auth] ( #registry_auth ) ** ²** | ` false ` | Enable Registry Authentication |
22- | [ registry_host] ( #registry_host ) | - | Registry Authentication Host |
23- | [ registry_user] ( #registry_user ) | - | Registry Authentication Username |
24- | [ registry_pass] ( #registry_pass ) | - | Registry Authentication Password |
25- | [ summary] ( #summary ) | ` true ` | Add Job Summary |
5+ | Input  ; Name | Default  ; Value | Short  ; Description  ; of  ; the  ; Input  ; Value |
6+ | :-------------------------------------------------------- | :---------------------------------- | :------------------------------------------------------------ |
7+ | < CopyButton next /> [ name] ( #name ) ** \* ** | - | Docker Stack/Project Name |
8+ | < CopyButton next /> [ file] ( #file ) | ` docker-compose.yaml ` | Docker Stack/Compose File(s) |
9+ | < CopyButton next /> [ mode] ( #mode ) ** ¹** | ` swarm ` | Deploy Mode [ ` swarm ` , ` compose ` ] |
10+ | < CopyButton next /> [ args] ( #args ) ** ¹** | ` --remove-orphans --force-recreate ` | Additional ** Compose** Arguments |
11+ | < CopyButton next /> [ host] ( #host ) ** \* ** | - | Remote Docker Hostname or IP |
12+ | < CopyButton next /> [ port] ( #port ) | ` 22 ` | Remote Docker Port |
13+ | < CopyButton next /> [ user] ( #user ) ** \* ** | - | Remote Docker Username |
14+ | < CopyButton next /> [ pass] ( #pass ) ** \* ** | - | Remote Docker Password |
15+ | < CopyButton next /> [ ssh_key] ( #ssh_key ) ** \* ** | - | Remote SSH Key File |
16+ | < CopyButton next /> [ disable_keyscan] ( #disable_keyscan ) | ` false ` | Disable SSH Keyscan ` ssh-keyscan ` |
17+ | < CopyButton next /> [ env_file] ( #env_file ) | - | Exported Environment File |
18+ | < CopyButton next /> [ detach] ( #detach ) ** ²** | ` true ` | Detach Flag, ` false ` , to disable |
19+ | < CopyButton next /> [ prune] ( #prune ) ** ²** | ` false ` | Prune Flag, ` true ` , to enable |
20+ | < CopyButton next /> [ resolve_image] ( #resolve_image ) ** ²** | ` always ` | Resolve [ ` always ` , ` changed ` , ` never ` ] |
21+ | < CopyButton next /> [ registry_auth] ( #registry_auth ) ** ²** | ` false ` | Enable Registry Authentication |
22+ | < CopyButton next /> [ registry_host] ( #registry_host ) | - | Registry Authentication Host |
23+ | < CopyButton next /> [ registry_user] ( #registry_user ) | - | Registry Authentication Username |
24+ | < CopyButton next /> [ registry_pass] ( #registry_pass ) | - | Registry Authentication Password |
25+ | < CopyButton next /> [ summary] ( #summary ) | ` true ` | Add Job Summary |
2626
2727> ** \* Required** , note [ pass] ( #pass ) /[ ssh_key] ( #ssh_key ) are mutually exclusive.
2828> ** ¹ Compose Only** , view the [ Compose Docs] ( https://docs.docker.com/reference/cli/docker/compose/up/ )
2929> ** ² Swarm Only** , view the [ Swarm Docs] ( https://docs.docker.com/reference/cli/docker/stack/deploy/ )
3030
3131## Details
3232
33- ### name <Badge type =" warning " text =" Required " />
33+ ### name <CopyButton /> < Badge type =" warning " text =" Required " />
3434
3535Swarm sack name or Compose project name.
3636
3737Example: ` cool-stack `
3838
39- ### file
39+ ### file < CopyButton />
4040
4141Stack file or Compose file(s).
4242
@@ -50,13 +50,13 @@ _Swarm._ Only supports 1 file per stack.
5050
5151Default: ` docker-compose.yaml `
5252
53- ### mode <Badge type =" tip " text =" Compose Only " />
53+ ### mode <CopyButton /> < Badge type =" tip " text =" Compose Only " />
5454
5555Set this to ` compose ` to use [ compose up] ( https://docs.docker.com/reference/cli/docker/compose/up/ ) for non-swarm hosts.
5656
5757Default: ` swarm `
5858
59- ### args <Badge type =" tip " text =" Compose Only " />
59+ ### args <CopyButton /> < Badge type =" tip " text =" Compose Only " />
6060
6161Compose arguments to pass to the ` compose up ` command. Only used for ` mode: compose ` deployments.
6262The ` detach ` flag defaults to false for compose. With no args the default is ` --remove-orphans --force-recreate ` .
@@ -65,7 +65,7 @@ Use an empty string to override. For more details, see the compose
6565
6666Default: ` --remove-orphans --force-recreate `
6767
68- ### host <Badge type =" warning " text =" Required " />
68+ ### host <CopyButton /> < Badge type =" warning " text =" Required " />
6969
7070The hostname or IP address of the remote docker server to deploy too.
7171If your hostname is behind a proxy like Cloudflare you will need to use the IP address.
@@ -92,13 +92,13 @@ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
9292
9393:::
9494
95- ### port
95+ ### port < CopyButton />
9696
9797SSH Port. Only set this if using a non-standard port.
9898
9999Default: ` 22 `
100100
101- ### user <Badge type =" warning " text =" Required " />
101+ ### user <CopyButton /> < Badge type =" warning " text =" Required " />
102102
103103SSH Username. This user ** must** have permissions to access docker.
104104
@@ -114,15 +114,15 @@ sudo usermod -aG docker mynewuser
114114After this you should be able to run ` docker ` commands as ` mynewuser ` without ` sudo ` .
115115Note, you may need to log out and back in for the changes to take effect.
116116
117- ### pass <Badge type =" warning " text =" Required " />
117+ ### pass <CopyButton /> < Badge type =" warning " text =" Required " />
118118
119119You must provide either a ` pass ` or [ ssh_key] ( #ssh_key ) , but ** not** both.
120120
121121When using a password, a temporary key is generated using [ ssh-keygen] ( https://linux.die.net/man/1/ssh-copy-id )
122122and copied to the host with [ ssh-copy-id] ( https://linux.die.net/man/1/ssh-copy-id ) using [ sshpass] ( https://linux.die.net/man/1/sshpass ) .
123123The authorized_keys file entry is [ cleaned up] ( https://github.com/cssnr/stack-deploy-action/blob/master/src/main.sh#L10 ) after each deploy.
124124
125- ### ssh_key <Badge type =" warning " text =" Required " /> {#ssh_key}
125+ ### ssh_key <CopyButton /> < Badge type =" warning " text =" Required " /> {#ssh_key}
126126
127127You must provide either a ` ssh_key ` or [ pass] ( #pass ) , but ** not** both.
128128
@@ -142,15 +142,15 @@ cat ~/.ssh/id_rsa
142142
143143:::
144144
145- ### disable_keyscan {#disable_keyscan}
145+ ### disable_keyscan < CopyButton /> {#disable_keyscan}
146146
147147This will disable the [ ssh-keyscan] ( https://linux.die.net/man/1/ssh-keyscan ) command. ** Advanced usage only.**
148148
149149Enabling this will ** break** deployments unless you know what you are doing.
150150
151151Default: ` false `
152152
153- ### env_file {#env_file}
153+ ### env_file < CopyButton /> {#env_file}
154154
155155Variables in this file are exported before running stack deploy.
156156If you need compose file templating this can also be done in a previous step.
@@ -162,7 +162,7 @@ _Compose._ You can also add to the [args](#args) with `--env-file stringArray`.
162162That is set in your compose file as normal.
163163:::
164164
165- ### detach <Badge type =" tip " text =" Swarm Only " />
165+ ### detach <CopyButton /> < Badge type =" tip " text =" Swarm Only " />
166166
167167Set this to ` false ` to not exit immediately and wait for the services to converge.
168168This will generate extra output in the logs and is useful for debugging deployments.
@@ -173,15 +173,15 @@ _See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/sta
173173
174174Default: ` true `
175175
176- ### prune
176+ ### prune < CopyButton />
177177
178178Prune services that are no longer referenced. Set to ` true ` to enable.
179179
180180_ See the [ stack deploy Options] ( https://docs.docker.com/reference/cli/docker/stack/deploy/#options ) for more details._
181181
182182Default: ` false `
183183
184- ### resolve_image <Badge type =" tip " text =" Swarm Only " /> {#resolve_image}
184+ ### resolve_image <CopyButton /> < Badge type =" tip " text =" Swarm Only " /> {#resolve_image}
185185
186186Can be one of: [ ` always ` , ` changed ` , ` never ` ]
187187
@@ -191,7 +191,7 @@ _See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/sta
191191
192192Default: ` always `
193193
194- ### registry_auth <Badge type =" tip " text =" Swarm Only " /> {#registry_auth}
194+ ### registry_auth <CopyButton /> < Badge type =" tip " text =" Swarm Only " /> {#registry_auth}
195195
196196Set to ` true ` to deploy with ` --with-registry-auth ` .
197197
@@ -201,24 +201,31 @@ _See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/sta
201201
202202Default: ` false `
203203
204- ### registry_host {#registry_host}
204+ ### registry_host < CopyButton /> {#registry_host}
205205
206206To run [ docker login] ( https://docs.docker.com/reference/cli/docker/login/ ) on another registry.
207207
208208Example: ` ghcr.io `
209209
210- ### registry_pass {#registry_pass}
210+ ### registry_pass < CopyButton /> {#registry_pass}
211211
212212Required to run [ docker login] ( https://docs.docker.com/reference/cli/docker/login/ ) before stack deploy.
213213
214- ### registry_user {#registry_user}
214+ ### registry_user < CopyButton /> {#registry_user}
215215
216216Required to run [ docker login] ( https://docs.docker.com/reference/cli/docker/login/ ) before stack deploy.
217217
218- ### summary
218+ ### summary < CopyButton />
219219
220220Write a Summary for the job. To disable this set to ` false ` .
221221
222222For more information see [ Job Summary] ( ../guides/features.md#job-summary ) .
223223
224224Default: ` true `
225+
226+ <style module >
227+ table td :nth-child (1 ),
228+ table td :nth-child (3 ) {
229+ white-space : nowrap ;
230+ }
231+ </style >
0 commit comments