Skip to content

Commit 4f51fbe

Browse files
committed
Add stack_param input option.
1 parent 3b75e64 commit 4f51fbe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ GitHub Action and Docker image used to deploy a Docker stack on a Docker Swarm.
3535
| `deploy_timeout` | `DEPLOY_TIMEOUT` | Seconds, to wait until the deploy finishes | | **600** |
3636
| `stack_file` | `STACK_FILE` | Path to the stack file used in the deploy. || |
3737
| `stack_name` | `STACK_NAME` | Name of the stack to be deployed. || |
38+
| `stack_paran` | `STACK_PARAM` | Additional parameter (env var) to be passed to the stack. | | |
3839
| `debug` | `DEBUG` | Verbose logging | | **0** |
3940

4041

@@ -104,6 +105,7 @@ jobs:
104105
remote_private_key: ${{ secrets.REMOTE_PRIVATE_KEY }}
105106
stack_file: "stacks/plone.yml"
106107
stack_name: "plone-live"
108+
stack_param: "foo"
107109
```
108110
109111
## Using the Docker Image

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ inputs:
4141
stack_name:
4242
description: "Name of the stack to be deployed"
4343
required: true
44+
stack_param:
45+
description: "Additional stack parameter value"
46+
required: false
47+
default: ""
4448
debug:
4549
description: "Debug information"
4650
required: false
@@ -59,4 +63,5 @@ runs:
5963
DEPLOY_TIMEOUT: ${{ inputs.deploy_timeout }}
6064
STACK_FILE: ${{ inputs.stack_file }}
6165
STACK_NAME: ${{ inputs.stack_name }}
66+
STACK_PARAM: ${{ inputs.stack_param }}
6267
DEBUG: ${{ inputs.debug }}

0 commit comments

Comments
 (0)