Skip to content

Commit

Permalink
Add stack_param input option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Nov 16, 2022
1 parent 3b75e64 commit 4f51fbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ GitHub Action and Docker image used to deploy a Docker stack on a Docker Swarm.
| `deploy_timeout` | `DEPLOY_TIMEOUT` | Seconds, to wait until the deploy finishes | | **600** |
| `stack_file` | `STACK_FILE` | Path to the stack file used in the deploy. || |
| `stack_name` | `STACK_NAME` | Name of the stack to be deployed. || |
| `stack_paran` | `STACK_PARAM` | Additional parameter (env var) to be passed to the stack. | | |
| `debug` | `DEBUG` | Verbose logging | | **0** |


Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:
remote_private_key: ${{ secrets.REMOTE_PRIVATE_KEY }}
stack_file: "stacks/plone.yml"
stack_name: "plone-live"
stack_param: "foo"
```

## Using the Docker Image
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ inputs:
stack_name:
description: "Name of the stack to be deployed"
required: true
stack_param:
description: "Additional stack parameter value"
required: false
default: ""
debug:
description: "Debug information"
required: false
Expand All @@ -59,4 +63,5 @@ runs:
DEPLOY_TIMEOUT: ${{ inputs.deploy_timeout }}
STACK_FILE: ${{ inputs.stack_file }}
STACK_NAME: ${{ inputs.stack_name }}
STACK_PARAM: ${{ inputs.stack_param }}
DEBUG: ${{ inputs.debug }}

0 comments on commit 4f51fbe

Please sign in to comment.