Skip to content

Commit

Permalink
Added port configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ttgc committed Sep 13, 2019
1 parent 0be19fa commit cc4537c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
description: 'POSTGRES_PASSWORD - superuser password'
required: false
default: ''
postgresql port:
description: 'The port to bind to the docker'
required: false
default: '5432'
runs:
using: 'docker'
image: 'Dockerfile'
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ docker_run="docker run"
docker_run="$docker_run -e POSTGRES_DB=$INPUT_POSTGRESQL_DB"
docker_run="$docker_run -e POSTGRES_USER=$INPUT_POSTGRESQL_USER"
docker_run="$docker_run -e POSTGRES_PASSWORD=$INPUT_POSTGRESQL_PASSWORD"
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"

sh -c "$docker_run"

0 comments on commit cc4537c

Please sign in to comment.