This GitHub Action sets up a PostgreSQL database. It utilizes the PostgreSQL Docker images.
Note: This is a fork from here, which is a fork from here, and originally created here. It was first forked due to inactivity from the original maintainer.
See action.yml.
Example:
steps:
- uses: CasperWA/[email protected]
with:
postgresql version: '12' # See https://hub.docker.com/_/postgres for available versions
postgresql db: my_db
postgresql init scripts: init-db/sql
postgresql conf: max_prepared_transactions=100
postgresql port: 2345
postgresql auth: trust
Optional: Version of PostgreSQL to use.
Default: latest
Optional: Name for the database that is created.
Default: PostgreSQL default.
Optional: Create the specified user with superuser power.
Default: PostgreSQL default.
Optional: Superuser password.
Default: PostgreSQL default.
Optional: Relative path (from repository root) to directory containing database init scripts.
Default: PostgreSQL default.
Optional: postgres
configurations.
Default: PostgreSQL default.
Optional: Port to bind to the docker.
Also the port to be exposed by the docker.
Default: 5432
Optional: Set auth-method for host connections (see PostgreSQL docs under auth-method
for list of recognized values and their meaning).
Default: PostgreSQL default.
The scripts and documentation in this project are released under the MIT License