Skip to content

GitHub Action to setup a PostgreSQL database with Postgis.

License

Notifications You must be signed in to change notification settings

huaxk/postgis-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL with Postgis GitHub Action

This GitHub Action setup a PostgreSQL database with Postgis.
Inspired by https://github.com/Harmon758/postgresql-action, @Harmon758 Thanks!

Usage

Basic:

steps:
- uses: huaxk/postgis-action@v1
  with:
    postgresql version: '11'  # See https://https://hub.docker.com/r/mdillon/postgis for available versions, if it is not specified, use the default value 'latest'
    postgresql password: ${{ secrets.DatabasePassword }}   # This environment variable sets the superuser password for PostgreSQL, maybe string or secrets, the default superuser is defined by the input environment variable: postgresql user.
    postgresql user: 'test'  # This optional environment variable is used in conjunction with postgresql password to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of 'postgres' will be used.
    postgresql db: 'test'  # This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of postgresql user will be used.

Client params:

  • host: "localhost"
  • user: "test"
  • password: ***
  • database: "test"
  • port: 5432

License

The scripts and documentation in this project are released under the MIT License