-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# postgis-action | ||
GitHub Action to setup a PostgreSQL database with Postgis. | ||
# PostgreSQL with Postgis GitHub Action | ||
This [GitHub Action](https://github.com/features/actions) setup a PostgreSQL database with Postgis. | ||
|
||
# Usage | ||
|
||
Basic: | ||
```yaml | ||
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. | ||
``` | ||
Clinet params: | ||
* host: "localhost" | ||
* user: "test" | ||
* password: *** | ||
* database: "test" | ||
* port: 5432 | ||
# License | ||
The scripts and documentation in this project are released under the [MIT License](LICENSE) |