Skip to content

Commit 18fae44

Browse files
committed
Standardize Examples
1 parent 7c2583f commit 18fae44

File tree

12 files changed

+30
-27
lines changed

12 files changed

+30
-27
lines changed

docs/docs/inputs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ Stack file or Compose file(s).
4646

4747
_Swarm._ Only supports 1 file per stack.
4848

49-
_Compose._ [Multiple files](https://docs.docker.com/compose/how-tos/multiple-compose-files/) can be provided, space seperated. and the `-f` flag will be prepended to each file.
49+
_Compose._ [Multiple files](https://docs.docker.com/compose/how-tos/multiple-compose-files/) can be provided, **space seperated**,
50+
and the `-f` flag will be automatically prepended to each file.
5051

5152
Example: `web.yaml db.yaml`
5253
Output: `-f web.yaml -f db.yaml`
@@ -55,7 +56,8 @@ Output: `-f web.yaml -f db.yaml`
5556

5657
Enable Docker Compose mode by setting this to `compose`.
5758

58-
Ths deploy will use [compose up](https://docs.docker.com/reference/cli/docker/compose/up/) instead of [stack deploy](https://docs.docker.com/reference/cli/docker/stack/deploy/) for non-swarm hosts.
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.
5961

6062
Example: `compose`
6163

docs/guides/get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ prev:
66

77
# Getting Started
88

9-
<span class="search-keywords">Install and Setup Guide.</span>
9+
<span class="search-keywords">Install and Setup Guide to Begin.</span>
1010

1111
To get started, create or update your [workflow file](#workflow) and review the [usage](#secrets).
1212

@@ -25,7 +25,7 @@ _If creating a [new workflow](https://docs.github.com/en/actions/concepts/workfl
2525

2626
**Make sure to update the highlighted lines.**
2727

28-
The only required inputs are [name](../docs/inputs.md#name), [host](../docs/inputs.md#host), `user`
28+
The only 4 required inputs are [name](../docs/inputs.md#name), [host](../docs/inputs.md#host), `user`
2929
and [pass](../docs/inputs.md#pass-ssh-key) or [ssh_key](../docs/inputs.md#pass-ssh-key) _(not both)_.
3030

3131
> See the [Inputs Documentation](../docs/inputs.md) for more options and **default** values.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
- name: "Compose Deploy"
1+
- name: "Stack Deploy"
22
uses: cssnr/stack-deploy-action@v1
33
with:
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
9-
ssh_key: ${{ secrets.DOCKER_SSH_KEY }}
8+
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
9+
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1010
mode: compose

docs/snippets/examples/compose/full.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
8+
port: 22 # 22 is default, you can remove or change this
99
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
1010
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1111
env_file: "stack.env"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
- name: "Compose Deploy"
1+
- name: "Stack Deploy"
22
uses: cssnr/stack-deploy-action@v1
33
with:
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
9-
ssh_key: ${{ secrets.DOCKER_SSH_KEY }}
8+
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
9+
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1010
mode: compose
1111
args: --remove-orphans --force-recreate

docs/snippets/examples/compose/registry.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
- name: "Compose Deploy"
1+
- name: "Stack Deploy"
22
uses: cssnr/stack-deploy-action@v1
33
with:
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
9-
ssh_key: ${{ secrets.DOCKER_SSH_KEY }}
8+
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
9+
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1010
registry_host: "ghcr.io"
1111
registry_user: ${{ vars.GHCR_USER }}
1212
registry_pass: ${{ secrets.GHCR_PASS }}

docs/snippets/examples/swarm/basic.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
77
user: ${{ secrets.DOCKER_USER }}
8-
port: ${{ secrets.DOCKER_PORT }} # default 22
98
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
109
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass

docs/snippets/examples/swarm/full.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
8+
port: 22 # 22 is default, you can remove or change this
99
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
1010
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1111
env_file: "stack.env"

docs/snippets/examples/swarm/options.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
9-
ssh_key: ${{ secrets.DOCKER_SSH_KEY }}
8+
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
9+
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1010
detach: false
1111
prune: true
1212
resolve_image: "changed"

docs/snippets/examples/swarm/registry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
name: "stack-name"
55
file: "docker-compose.yaml"
66
host: ${{ secrets.DOCKER_HOST }}
7-
port: ${{ secrets.DOCKER_PORT }}
87
user: ${{ secrets.DOCKER_USER }}
9-
pass: ${{ secrets.DOCKER_PASS }}
8+
pass: ${{ secrets.DOCKER_PASS }} # not needed with ssh_key
9+
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # not needed with pass
1010
registry_host: "ghcr.io"
1111
registry_user: ${{ vars.GHCR_USER }}
1212
registry_pass: ${{ secrets.GHCR_PASS }}

0 commit comments

Comments
 (0)