Skip to content

Commit 66f5218

Browse files
committed
docker stack file >> compose file
1 parent ab88585 commit 66f5218

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ inputs:
1515
args:
1616
description: Deployment command args.
1717
required: true
18-
stack_file_name:
19-
description: Docker stack file used. Default is docker-compose.yaml
18+
compose_file_name:
19+
description: Docker compose file used. Default is docker-compose.yaml
2020
required: false
2121
ssh_port:
2222
description: The ssh port of the server. Default is 22

docker-entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ if [ -z "$INPUT_ARGS" ]; then
3535
exit 1
3636
fi
3737

38-
if [ -z "$INPUT_STACK_FILE_NAME" ]; then
39-
INPUT_STACK_FILE_NAME=docker-compose.yml
38+
if [ -z "$INPUT_COMPOSE_FILE_NAME" ]; then
39+
INPUT_COMPOSE_FILE_NAME=docker-compose.yml
4040
fi
4141

4242
if [ -z "$INPUT_SSH_PORT" ]; then
4343
INPUT_SSH_PORT=22
4444
fi
4545

46-
STACK_FILE=${INPUT_STACK_FILE_NAME}
46+
COMPOSE_FILE=${INPUT_COMPOSE_FILE_NAME}
4747
DOCKER_HOST=ssh://${INPUT_REMOTE_DOCKER_HOST}:${INPUT_SSH_PORT}
48-
DEPLOYMENT_COMMAND="docker compose -f $STACK_FILE"
48+
DEPLOYMENT_COMMAND="docker compose -f $COMPOSE_FILE"
4949

5050

5151
SSH_HOST=${INPUT_REMOTE_DOCKER_HOST#*@}

0 commit comments

Comments
 (0)