Skip to content

GitHub Action to setup a PostgreSQL database with Postgis.

License

Notifications You must be signed in to change notification settings

ireznik/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

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL with Postgis GitHub Action

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

Usage

Basic:

steps:
- uses: ireznik/postgis-action@v12
  with:
    postgresql version: '12-master'  # See https://hub.docker.com/r/postgis/postgis for available versions, if it is not specified, use the default value 'latest'
    postgresql password: 'test'   # 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

About

GitHub Action to setup a PostgreSQL database with Postgis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Nim 72.1%
  • Shell 21.0%
  • Dockerfile 6.9%