Setups PostgreSQL database with unprivileged postgres user and PostgreSQL extensions.
Optional Docker postgres image tag for available image tags please follow https://hub.docker.com/_/postgres
- Default value:
latest
Optional Docker postgres image name if not using https://hub.docker.com/_/postgres
- Default value:
postgres
- POSTGRES_USER - create the user with the superuser power
- Default value:
postgres
- POSTGRES_DB - postgres database
- Default value:
postgres
- POSTGRES_PASSWORD - superuser password
- Default value:
postgres
- POSTGRES_EXTENSIONS - List of postgres extensions separated by space to install in the 'public' database.
- Default value is empty
- Example:
uuid-ossp ltree
- APP_USER - unprivileged postgres user
- Default value:
app
- APP_PASSWORD_USER - password for unprivileged postgres user
- Default value:
app
- APP_DB - database or list of databases separated by space for unprivileged postgres user
- Default value:
app
- Example:
app1 app2 app3
- EXPOSED_POSTGRES_PORT - exposed postgres port
- Default value:
5432
- name: Setup Postgres database
uses: Daniel-Marynicz/postgresql-action@master
with:
postgres_image_tag: 12-alpine
app_user: app
app_user_password: develop
app_db: app app2 app3 app4
postgres_extensions: uuid-ossp ltree