We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f2589 commit 29d56e9Copy full SHA for 29d56e9
action.yml
@@ -31,6 +31,10 @@ inputs:
31
description: 'POSTGRES_CONF - postgres configurations'
32
required: false
33
default: ''
34
+ postgresql port:
35
+ description: 'The port to bind to the docker'
36
+ required: false
37
+ default: '5432'
38
runs:
39
using: 'docker'
40
image: 'Dockerfile'
entrypoint.sh
@@ -12,7 +12,7 @@ then
12
docker_run="$docker_run -v $INIT_SCRIPT_PATH:/docker-entrypoint-initdb.d"
13
fi
14
15
-docker_run="$docker_run -d -p 5432:5432 postgres:$INPUT_POSTGRESQL_VERSION"
+docker_run="$docker_run -d -p $INPUT_POSTGRESQL_PORT:5432 postgres:$INPUT_POSTGRESQL_VERSION"
16
17
if [ ! -z "$INPUT_POSTGRESQL_CONF" ]
18
then
0 commit comments