Skip to content

Commit ff86b1a

Browse files
committed
add min instances
1 parent c0d8a2c commit ff86b1a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ inputs:
2323
cloud_sql:
2424
description: 'CloudSQL instance name'
2525
required: false
26+
env:
27+
description: 'Environment variables file'
28+
required: false
29+
min_instances:
30+
description: 'Minimum number of instance'
31+
required: false
2632
runs:
2733
using: 'docker'
2834
image: 'Dockerfile'

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ else
1717
ENV_FLAG="--clear-env-vars"
1818
fi
1919

20+
if ["$INPUT_MIN_INSTANCES"]
21+
then
22+
ENG_FLAG="--min-instances=$INPUT_MIN_INSTANCES $ENV_FLAG"
23+
fi
2024

2125
if ["$INPUT_CLOUD_SQL"]
2226
then

0 commit comments

Comments
 (0)