Skip to content

Commit a80dff7

Browse files
committed
Add Defaults to Inputs Details
1 parent cb32270 commit a80dff7

File tree

6 files changed

+41
-30
lines changed

6 files changed

+41
-30
lines changed

.github/workflows/pages.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
env:
15-
CRAWLER_ID: 7a46f2b7-7169-4936-986d-21391c3134d4
15+
CRAWLER_ID: "7a46f2b7-7169-4936-986d-21391c3134d4"
1616

1717
permissions:
1818
contents: read
@@ -89,6 +89,7 @@ jobs:
8989

9090
steps:
9191
- name: "Algolia Crawler"
92+
if: ${{ env.CRAWLER_ID != '' }}
9293
uses: cssnr/algolia-crawler-action@v1
9394
with:
9495
crawler_id: ${{ env.CRAWLER_ID }}

.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default defineConfig({
103103
{ icon: 'vitepress', link: settings.docs_repo },
104104
{
105105
icon: {
106-
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.504 0v1.023l-.01-.015l-6.106 3.526H3.417v.751h5.359v3.638h1.942V5.284h1.786V15.7c.027 0 .54-.01.751.091V5.285h.531v10.608c.293.147.55.312.751.54V5.286h6.046v-.75h-1.267l-6.061-3.5V0zm0 1.87v2.664H7.889zm.751.031l4.56 2.633h-4.56zM9.142 5.285h1.21v1.686h-1.21zm-4.736 2.73v1.951h1.942v-1.95zm2.19 0v1.951h1.941v-1.95zm-2.19 2.171v1.951h1.942v-1.95zm2.19 0v1.951h1.941v-1.95zm2.18 0v1.951h1.942v-1.95zM4.36 12.43a3.73 3.73 0 0 0-.494 1.851c0 1.227.604 2.308 1.52 2.986c.239-.064.477-.1.724-.11c.1 0 .165.01.266.019c.284-1.191 1.383-1.988 2.665-1.988c.724 0 1.438.201 1.924.668c.229-.476.302-1.007.302-1.575c0-.65-.165-1.292-.494-1.85zm4.828 3.16c-1.21 0-2.226.844-2.492 1.97a1 1 0 0 0-.275-.009a2.56 2.56 0 0 0-2.564 2.556a2.565 2.565 0 0 0 3.096 2.5A2.58 2.58 0 0 0 9.233 24c.862 0 1.622-.43 2.09-1.081a2.557 2.557 0 0 0 4.186-1.97c0-.567-.193-1.099-.504-1.52a2.557 2.557 0 0 0-3.866-2.94a2.57 2.57 0 0 0-1.951-.898z"/></svg>',
106+
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M0 0 C238.89488636 0 238.89488636 0 266.875 5.6875 C268.14907715 5.94241211 269.4231543 6.19732422 270.73583984 6.45996094 C295.28260499 11.59829842 320.09148518 20.37064171 340 36 C340.54060059 36.42394043 341.08120117 36.84788086 341.63818359 37.28466797 C368.61078119 58.66433771 383.36837693 87.73116778 390.25 121.0625 C390.40122314 121.79202881 390.55244629 122.52155762 390.70825195 123.27319336 C393.75434473 139.20885092 394.34740822 155.07180869 394.31567383 171.25634766 C394.31252391 174.59961928 394.33603462 177.94199374 394.36132812 181.28515625 C394.48042561 221.65493635 386.6720841 263.40701976 360 295 C359.22011719 295.94359375 358.44023437 296.8871875 357.63671875 297.859375 C326.51839243 333.91792662 276.24399058 344.84615939 231 349 C203.39260712 350.84049286 175.66867463 350 148 350 C148 403.13 148 456.26 148 511 C99.16 511 50.32 511 0 511 C0 342.37 0 173.74 0 0 Z M148 113 C148 153.59 148 194.18 148 236 C189.45432414 238.69302267 189.45432414 238.69302267 226.4375 222.4375 C241.24079463 205.85526868 241.16225589 182.93482327 240 162 C238.92408923 148.44729943 234.26236473 136.11455817 225 126 C203.39772138 108.73182783 173.794862 113 148 113 Z " transform="translate(59,0)"/><path d="M0 0 C40.26 0 80.52 0 122 0 C122 39.93 122 79.86 122 121 C81.74 121 41.48 121 0 121 C0 81.07 0 41.14 0 0 Z " transform="translate(331,391)"/></svg>',
107107
},
108108
link: 'https://github.com/cssnr/portainer-stack-deploy-action',
109109
},

docs/docs/inputs.md

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The inputs are organized in a table for quick [reference](#reference) with addit
2222
| [detach](#detach) **²** | `true` | Detach Flag, `false`, to disable |
2323
| [prune](#prune) **²** | `false` | Prune Flag, `true`, to enable |
2424
| [resolve_image](#resolve_image) **²** | `always` | Resolve [`always`, `changed`, `never`] |
25-
| [registry_auth](#registry_auth) **²** | - | Enable Registry Authentication |
25+
| [registry_auth](#registry_auth) **²** | `false` | Enable Registry Authentication |
2626
| [registry_host](#registry_host) | - | Registry Authentication Host |
2727
| [registry_user](#registry_user) | - | Registry Authentication Username |
2828
| [registry_pass](#registry_pass) | - | Registry Authentication Password |
@@ -44,22 +44,21 @@ Example: `cool-stack`
4444

4545
Stack file or Compose file(s).
4646

47-
_Swarm._ Only supports 1 file per stack.
48-
4947
_Compose._ [Multiple files](https://docs.docker.com/compose/how-tos/multiple-compose-files/) can be provided, **space seperated**,
5048
and the `-f` flag will be automatically prepended to each file.
5149

5250
Example: `web.yaml db.yaml`
5351
Output: `-f web.yaml -f db.yaml`
5452

55-
### mode <Badge type="tip" text="Compose Only" />
53+
_Swarm._ Only supports 1 file per stack.
5654

57-
Enable Docker Compose mode by setting this to `compose`.
55+
Default: `docker-compose.yaml`
5856

59-
Ths deploy will use [compose up](https://docs.docker.com/reference/cli/docker/compose/up/)
60-
instead of [stack deploy](https://docs.docker.com/reference/cli/docker/stack/deploy/) for non-swarm hosts.
57+
### mode <Badge type="tip" text="Compose Only" />
58+
59+
Set this to `compose` to use [compose up](https://docs.docker.com/reference/cli/docker/compose/up/) for non-swarm hosts.
6160

62-
Example: `compose`
61+
Default: `swarm`
6362

6463
### args <Badge type="tip" text="Compose Only" />
6564

@@ -68,14 +67,14 @@ The `detach` flag defaults to false for compose. With no args the default is `--
6867
Use an empty string to override. For more details, see the compose
6968
[docs](https://docs.docker.com/reference/cli/docker/compose/up/).
7069

71-
Example: `--remove-orphans --force-recreate`
70+
Default: `--remove-orphans --force-recreate`
7271

7372
### host <Badge type="warning" text="Required" />
7473

7574
The hostname or IP address of the remote docker server to deploy too.
7675
If your hostname is behind a proxy like Cloudflare you will need to use the IP address.
7776

78-
If you don't know your Public IP, you may be able to find it using one of these commands.
77+
You may be able to find your Public IP with one of these commands.
7978

8079
::: code-group
8180

@@ -99,11 +98,9 @@ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
9998

10099
### port
101100

102-
SSH Port. The default is 22.
101+
SSH Port. Only set this if using a non-standard port.
103102

104-
Only set this if using a non-standard port.
105-
106-
Example: `2222`
103+
Default: `22`
107104

108105
### user <Badge type="warning" text="Required" />
109106

@@ -133,7 +130,7 @@ The authorized_keys file entry is [cleaned up](https://github.com/cssnr/stack-de
133130

134131
You must provide either a `ssh_key` or [pass](#pass), but **not** both.
135132

136-
To generate an SSH key, run the following as the [user](#user) you are using:
133+
To generate an SSH key, run the following as the deployment [user](#user):
137134

138135
::: code-group
139136

@@ -153,6 +150,10 @@ cat ~/.ssh/id_ed25519
153150

154151
This will disable the [ssh-keyscan](https://linux.die.net/man/1/ssh-keyscan) command. **Advanced usage only.**
155152

153+
Enabling this will **break** deployments unless you know what you are doing.
154+
155+
Default: `false`
156+
156157
### env_file {#env_file}
157158

158159
Variables in this file are exported before running stack deploy.
@@ -170,29 +171,39 @@ That is set in your compose file as normal.
170171
Set this to `false` to not exit immediately and wait for the services to converge.
171172
This will generate extra output in the logs and is useful for debugging deployments.
172173

173-
Defaults to `false` in `mode: compose`.
174+
_Compose_. The detach flag is implied in compose.
175+
176+
_See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details._
174177

175-
See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details.
178+
Default: `true`
176179

177180
### prune
178181

179182
Prune dangling images. Set to `true` to enable.
180183

181-
See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details.
184+
_See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details._
185+
186+
Default: `false`
182187

183188
### resolve_image <Badge type="tip" text="Swarm Only" /> {#resolve_image}
184189

190+
Can be one of: [`always`, `changed`, `never`]
191+
185192
When the default `always` is used, this argument is omitted.
186193

187-
See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details.
194+
_See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details._
195+
196+
Default: `always`
188197

189198
### registry_auth <Badge type="tip" text="Swarm Only" /> {#registry_auth}
190199

191200
Set to `true` to deploy with `--with-registry-auth`.
192201

193202
If setting [registry_user](#registry_user)/[registry_pass](#registry_pass) this is implied.
194203

195-
See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details.
204+
_See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details._
205+
206+
Default: `false`
196207

197208
### registry_host {#registry_host}
198209

@@ -212,4 +223,6 @@ Required to run [docker login](https://docs.docker.com/reference/cli/docker/logi
212223

213224
Write a Summary for the job. To disable this set to `false`.
214225

215-
For more information see [Job Summary](../guides/features.md#job-summary).
226+
_For more information see [Job Summary](../guides/features.md#job-summary)._
227+
228+
Default: `true`

docs/guides/get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Add the step to an existing workflow or create a new one.
1919
_If creating a [new workflow](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflows#about-workflows), place it in the `.github/workflows` directory._
2020

2121
::: code-group
22-
<<< @/snippets/basic/step.yaml {4,5,8,9,10,11 yaml} [Existing Workflow ~vscode-icons:folder-type-github~]
23-
<<< @/snippets/basic/workflow.yaml {15,20,21,24,25,26,27 yaml} [New Workflow ~vscode-icons:folder-type-github~]
22+
<<< @/snippets/basic/step.yaml {4,5,10,11 yaml} [Existing Workflow ~vscode-icons:folder-type-github~]
23+
<<< @/snippets/basic/workflow.yaml {17,18,23,24 yaml} [New Workflow ~vscode-icons:folder-type-github~]
2424
:::
2525

26-
**Make sure to update the highlighted lines.**
26+
**Make sure to update the highlighted lines and add your [secrets](#secrets).**
2727

2828
The only 4 required inputs are [name](../docs/inputs.md#name), [host](../docs/inputs.md#host), [user](../docs/inputs.md#user)
2929
and [pass](../docs/inputs.md#pass) or [ssh_key](../docs/inputs.md#ssh_key) _(not both)_.

docs/snippets/basic/workflow.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: "Docker Stack Deploy"
2-
32
on:
43
workflow_dispatch:
5-
64
jobs:
75
deploy:
86
name: "Deploy"
97
runs-on: ubuntu-latest
10-
118
steps:
129
- name: "Checkout"
1310
uses: actions/checkout@v5

docs/snippets/examples/workflows/full.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
name: "Deploy"
6060
runs-on: ubuntu-latest
6161
timeout-minutes: 5
62-
needs: [build]
62+
needs: build
6363

6464
steps:
6565
- name: "Checkout"

0 commit comments

Comments
 (0)