Skip to content

Commit 29d56e9

Browse files
ttgcCasperWA
authored andcommitted
Added port configuration
1 parent 62f2589 commit 29d56e9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ inputs:
3131
description: 'POSTGRES_CONF - postgres configurations'
3232
required: false
3333
default: ''
34+
postgresql port:
35+
description: 'The port to bind to the docker'
36+
required: false
37+
default: '5432'
3438
runs:
3539
using: 'docker'
3640
image: 'Dockerfile'

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ then
1212
docker_run="$docker_run -v $INIT_SCRIPT_PATH:/docker-entrypoint-initdb.d"
1313
fi
1414

15-
docker_run="$docker_run -d -p 5432:5432 postgres:$INPUT_POSTGRESQL_VERSION"
15+
docker_run="$docker_run -d -p $INPUT_POSTGRESQL_PORT:5432 postgres:$INPUT_POSTGRESQL_VERSION"
1616

1717
if [ ! -z "$INPUT_POSTGRESQL_CONF" ]
1818
then

0 commit comments

Comments
 (0)