66[ ![ Workflow Lint] ( https://img.shields.io/github/actions/workflow/status/cssnr/stack-deploy-action/lint.yaml?logo=github&label=lint )] ( https://github.com/cssnr/stack-deploy-action/actions/workflows/lint.yaml )
77[ ![ GitHub Last Commit] ( https://img.shields.io/github/last-commit/cssnr/stack-deploy-action?logo=github&label=updated )] ( https://github.com/cssnr/stack-deploy-action/graphs/commit-activity )
88[ ![ Codeberg Last Commit] ( https://img.shields.io/gitea/last-commit/cssnr/stack-deploy-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated )] ( https://codeberg.org/cssnr/stack-deploy-action )
9- [ ![ GitHub Top Language] ( https://img.shields.io/github/languages/top/cssnr/stack-deploy-action?logo=htmx )] ( https://github.com/cssnr/stack-deploy-action )
9+ [ ![ GitHub Top Language] ( https://img.shields.io/github/languages/top/cssnr/stack-deploy-action?logo=sharp&logoColor=white )] ( https://github.com/cssnr/stack-deploy-action )
10+ [ ![ GitHub repo size] ( https://img.shields.io/github/repo-size/cssnr/stack-deploy-action?logo=bookstack&logoColor=white&label=size )] ( https://github.com/cssnr/stack-deploy-action )
1011[ ![ GitHub Discussions] ( https://img.shields.io/github/discussions/cssnr/stack-deploy-action )] ( https://github.com/cssnr/stack-deploy-action/discussions )
1112[ ![ GitHub Forks] ( https://img.shields.io/github/forks/cssnr/stack-deploy-action?style=flat&logo=github )] ( https://github.com/cssnr/stack-deploy-action/forks )
1213[ ![ GitHub Repo Stars] ( https://img.shields.io/github/stars/cssnr/stack-deploy-action?style=flat&logo=github )] ( https://github.com/cssnr/stack-deploy-action/stargazers )
2324- [ Contributing] ( #Contributing )
2425
2526> [ !TIP]
26- > 💡 Now works with vanilla Docker hosts using ** Compose. No Swarm Required!**
27- > Just set ` mode: compose ` . See the [ Inputs] ( #Inputs ) for more details...
27+ > Now works with Docker ** Compose. No& nbsp ; Swarm& nbsp ; Required!**
28+ > ▶️ Set ` mode: compose ` . See [ Inputs] ( #Inputs ) for more details...
2829
2930This action deploys a docker stack from a compose file to a remote docker host using SSH Password or Key File Authentication.
3031You can also optionally authenticate against a private registry using a username and password.
@@ -41,30 +42,30 @@ For more details see [action.yaml](action.yaml) and [src/main.sh](src/main.sh).
4142
4243## Inputs
4344
44- | Input | Required | Default | Description |
45- | :------------------- | :----------: | :---------------------------------- | :---------------------------------------- |
46- | ` name ` | ** Yes** | - | Docker Stack/Project Name \* |
47- | ` file ` | - | ` docker-compose.yaml ` | Docker Stack/Compose File |
48- | ` mode ` ** ¹** | - | ` swarm ` | Deploy Mode: [ ` swarm ` , ` compose ` ] \* |
49- | ` args ` ** ¹** | - | ` --remove-orphans --force-recreate ` | Additional Arguments for ** Compose** \* |
50- | ` host ` | ** Yes** | - | Remote Docker Hostname or IP \* |
51- | ` port ` | - | ` 22 ` | Remote Docker Port |
52- | ` user ` | ** Yes** | - | Remote Docker Username |
53- | ` pass ` | or ` ssh_key ` | - | Remote Docker Password \* |
54- | ` ssh_key ` | or ` pass ` | - | Remote SSH Key File \* |
55- | ` env_file ` | - | - | Docker Environment File \* |
56- | ` detach ` ** ²** | - | ` true ` | Detach Flag, ` false ` , to disable \* |
57- | ` prune ` ** ²** | - | ` false ` | Prune Flag, ` true ` , to enable |
58- | ` resolve_image ` ** ²** | - | ` always ` | Resolve [ ` always ` , ` changed ` , ` never ` ] \* |
59- | ` registry_auth ` ** ²** | - | - | Enable Registry Authentication \* |
60- | ` registry_host ` | - | - | Registry Authentication Host \* |
61- | ` registry_user ` | - | - | Registry Authentication Username \* |
62- | ` registry_pass ` | - | - | Registry Authentication Password \* |
63- | ` summary ` | - | ` true ` | Add Job Summary \* |
64-
65- > ** ¹** Compose Only. View the [ Docs] ( https://docs.docker.com/reference/cli/docker/compose/up/ ) .
66- > ** ²** Swarm Only. View the [ Docs] ( https://docs.docker.com/reference/cli/docker/stack/deploy/ ) .
67- > \* See Below for more details...
45+ | Input& nbsp ; Name | Is & nbsp ; Required | Default& nbsp ; Value | Input & nbsp ; Description |
46+ | :------------------- | :-------------- : | :---------------------------------- | :---------------------------------------- |
47+ | ` name ` | ** Yes** | - | Docker Stack/Project Name \* |
48+ | ` file ` | - | ` docker-compose.yaml ` | Docker Stack/Compose File |
49+ | ` mode ` ** ¹** | - | ` swarm ` | Deploy Mode: [ ` swarm ` , ` compose ` ] \* |
50+ | ` args ` ** ¹** | - | ` --remove-orphans --force-recreate ` | Additional Arguments for ** Compose** \* |
51+ | ` host ` | ** Yes** | - | Remote Docker Hostname or IP \* |
52+ | ` port ` | - | ` 22 ` | Remote Docker Port |
53+ | ` user ` | ** Yes** | - | Remote Docker Username |
54+ | ` pass ` | or ` ssh_key ` | - | Remote Docker Password \* |
55+ | ` ssh_key ` | or ` pass ` | - | Remote SSH Key File \* |
56+ | ` env_file ` | - | - | Docker Environment File \* |
57+ | ` detach ` ** ²** | - | ` true ` | Detach Flag, ` false ` , to disable \* |
58+ | ` prune ` ** ²** | - | ` false ` | Prune Flag, ` true ` , to enable |
59+ | ` resolve_image ` ** ²** | - | ` always ` | Resolve [ ` always ` , ` changed ` , ` never ` ] \* |
60+ | ` registry_auth ` ** ²** | - | - | Enable Registry Authentication \* |
61+ | ` registry_host ` | - | - | Registry Authentication Host \* |
62+ | ` registry_user ` | - | - | Registry Authentication Username \* |
63+ | ` registry_pass ` | - | - | Registry Authentication Password \* |
64+ | ` summary ` | - | ` true ` | Add Job Summary \* |
65+
66+ > ** ¹** Compose Only, view the [ Docs] ( https://docs.docker.com/reference/cli/docker/compose/up/ ) .
67+ > ** ²** Swarm Only, view the [ Docs] ( https://docs.docker.com/reference/cli/docker/stack/deploy/ ) .
68+ > \* More details below ...
6869
6970<details ><summary >📟 Click Here to see how the deployment command is generated</summary >
7071
@@ -92,7 +93,7 @@ Use an empty string to override. For more details, see the compose
9293** host:** The hostname or IP address of the remote docker server to deploy too.
9394If your hostname is behind a proxy like Cloudflare you will need to use the IP address.
9495
95- ** pass/ssh_key:** You must provide either a ` pass ` or ` ssh_key ` , but not both.
96+ ** pass/ssh_key:** You must provide either a ` pass ` or ` ssh_key ` , not both.
9697
9798** env_file:** Variables in this file are exported before running stack deploy.
9899To use a docker ` env_file ` specify it in your compose file and make it available in a previous step.
@@ -122,7 +123,7 @@ To view a workflow run, click on a recent [Test](https://github.com/cssnr/stack-
122123🚀 Swarm Stack ` test_stack-deploy ` Successfully Deployed.
123124
124125``` text
125- docker stack deploy -- detach=false --resolve-image=changed -c docker-compose.yaml test_stack-deploy
126+ docker stack deploy -c docker-compose.yaml -- detach=false --resolve-image=changed test_stack-deploy
126127```
127128
128129<details ><summary >Results</summary >
@@ -461,14 +462,17 @@ https://github.com/cssnr/stack-deploy-action/network/dependents
461462
462463The following rolling [tags](https://github.com/cssnr/stack-deploy-action/tags) are maintained.
463464
464- | Version Tag | Rolling | Bugs | Feat. | Target | Example |
465- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----- : | :--: | :---: | :------- | :------- |
466- | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ✅ | ✅ | ✅ | `vN.x.x` | `vN` |
467- | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ✅ | ✅ | ❌ | `vN.N.x` | `vN.N` |
468- | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ❌ | ❌ | ❌ | `vN.N.N` | `vN.N.N` |
465+ | Version Tag | Rolling | Bugs | Feat. | Name | Target | Example |
466+ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----- : | :--: | :---: | :-------: | :------: | :------- |
467+ | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ✅ | ✅ | ✅ | **Major** | `vN.x.x` | `vN` |
468+ | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ✅ | ✅ | ❌ | **Minor** | `vN.N.x` | `vN.N` |
469+ | [](https://github.com/cssnr/stack-deploy-action/releases/latest) | ❌ | ❌ | ❌ | **Micro** | `vN.N.N` | `vN.N.N` |
469470
470471You can view the release notes for each version on the [releases](https://github.com/cssnr/stack-deploy-action/releases) page.
471472
473+ The **Major** tag is recommended. It is the most up-to-date and always backwards compatible.
474+ Breaking changes would result in a **Major** version bump. At a minimum you should use a **Minor** tag.
475+
472476# # Features
473477
474478- Deploy to a remote host using SSH or Password authentication.
0 commit comments