Skip to content

Commit 32aa6f8

Browse files
committed
Update deployment_image to stack_name in action.yml
1 parent 0ef2870 commit 32aa6f8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Here is an example workflow:
4747
| Parameter | Description | Default | Required |
4848
|-----------------------------|-------------------------------------------------------------------------------------------------------|------------------------------------------|----------|
4949
| docker_compose_file_path | Set your docker compose file path with the CLI options. | `-c docker-compose.yml -c docker-compose.prod.yml` | false |
50-
| deployment_image | The Docker Image to deploy. | | false |
50+
| stack_name | The name of your docker stack. | | true |
5151
| deployment_ssh_private_key | The private key you have authenticated to connect to your server via SSH. | | ⚠️ true |
5252
| remote_ssh_known_hosts | The public key of your SSH server to validate we are connecting to the right server. | | ⚠️ true |
5353
| remote_ssh_deployment_user | The user that you would like to connect as on the remote server via SSH. | `deploy` | ⚠️ true |

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ inputs:
55
description: 'Set your docker compose file path with the CLI options.'
66
default: '-c docker-compose.yml -c docker-compose.prod.yml'
77
required: false
8-
deployment_image:
9-
description: 'The Docker Image to deploy.'
10-
required: false
8+
stack_name:
9+
description: 'The name of your Docker stack.'
10+
required: true
1111
deployment_ssh_private_key:
1212
description: 'The private key you have authenticated to connect to your server via SSH.'
1313
required: true
@@ -97,7 +97,7 @@ runs:
9797
docker --log-level ${{ inputs.log_level }} -H ssh://${{ inputs.remote_ssh_deployment_user }}@${{ inputs.remote_ssh_server_hostname }}:${{ inputs.remote_ssh_port }} \
9898
stack deploy --with-registry-auth \
9999
${{ inputs.docker_compose_file_path }} \
100-
${{ inputs.deployment_image }} \
100+
${{ inputs.stack_name }} \
101101
--prune
102102
shell: bash
103103
env:

0 commit comments

Comments
 (0)