forked from Daniel-Marynicz/postgresql-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·28 lines (24 loc) · 949 Bytes
/
test.sh
File metadata and controls
executable file
·28 lines (24 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
docker build -t test .
INPUT_POSTGRES_USER=postgres
INPUT_POSTGRES_DB=postgres
INPUT_POSTGRES_PASSWORD=postgres
INPUT_POSTGRES_EXTENSIONS="uuid-ossp ltree"
INPUT_APP_USER=app
INPUT_APP_USER_PASSWORD=app
INPUT_APP_DB="app app1 app2"
INPUT_EXPOSED_POSTGRES_PORT=5432
INPUT_POSTGRES_IMAGE_TAG=latest
INPUT_POSTGRES_IMAGE_NAME=postgres
docker run \
-e INPUT_POSTGRES_USER="${INPUT_POSTGRES_USER}" \
-e INPUT_POSTGRES_DB="${INPUT_POSTGRES_DB}" \
-e INPUT_POSTGRES_PASSWORD"=${INPUT_POSTGRES_PASSWORD}" \
-e INPUT_POSTGRES_EXTENSIONS"=${INPUT_POSTGRES_EXTENSIONS}" \
-e INPUT_APP_USER"=${INPUT_APP_USER}" \
-e INPUT_APP_USER_PASSWORD"=${INPUT_APP_USER_PASSWORD}" \
-e INPUT_APP_DB="$INPUT_APP_DB" \
-e INPUT_EXPOSED_POSTGRES_PORT"=${INPUT_EXPOSED_POSTGRES_PORT}" \
-e INPUT_POSTGRES_IMAGE_TAG"=${INPUT_POSTGRES_IMAGE_TAG}" \
-e INPUT_POSTGRES_IMAGE_NAME"=${INPUT_POSTGRES_IMAGE_NAME}" \
-v /var/run/docker.sock:/var/run/docker.sock \
test