Skip to content

Commit 8126d8c

Browse files
authored
Update README.md (#4)
1 parent 49bc3d8 commit 8126d8c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
# GitHub Action for deploying updates to Azure Database for PostgreSQL server
22

3-
With the Azure PostgreSQL Action for GitHub, you can automate your workflow to deploy updates to [Azure Database for PostgreSQL server](https://azure.microsoft.com/en-in/services/postgresql/). You can run a single SQL file or multiple sql files from a single parent folder against your Azure Database for PostgreSQL server.
3+
With the Azure PostgreSQL Action for GitHub, you can automate your workflow to deploy updates to [Azure Database for PostgreSQL server](https://azure.microsoft.com/en-in/services/postgresql/). You can run a single PL/SQL file or multiple sql files from a single parent folder against your Azure Database for PostgreSQL server.
44

55
Get started today with a [free Azure account](https://azure.com/free/open-source)!
66

77
This repository contains GitHub Action for [Azure database for PostgreSQL server](https://github.com/Azure/postgresql-action) to deploy .
88

9-
The action uses Connection String for authentication and SQL scripts to deploy to your PostgreSQL database.
9+
The action uses Connection String for authentication and PL/SQL scripts to deploy to your PostgreSQL database.
1010

1111
If you are looking for more Github Actions to deploy code or a customized image into an Azure Webapp or a Kubernetes service, consider using [Azure Actions](https://github.com/Azure/actions).
1212

1313
The definition of this Github Action is in [action.yml](https://github.com/Azure/postgresql-action/blob/master/action.yml).
1414

1515
# End-to-End Sample Workflow
1616

17-
## Running for multiple SQL scripts
18-
Using [Azure PostgreSQL action](https://github.com/Azure/postgresql-action), either a single SQL script/multiple SQL scripts from a single parent folder can be run. Following are the sample values which can be used in plsql-file input: filename.sql, *.sql, folder1/folder2/*.sql, folder1/<any regex>.sql
19-
20-
In case of multiple files, filenames are ordered lexicographically and run in order. Additional arguments provided for PSQL shell will be applied to all the files.
17+
## Running multiple PL/SQL scripts
18+
- Using [Azure PostgreSQL action](https://github.com/Azure/postgresql-action), either a single/multiple PL/SQL SQL script(s) from a single parent folder can be run.
19+
- Following sample values can be used in plsql-file input: filename.sql, *.sql, folder1/folder2/*.sql, folder1/<any regex>.sql
20+
- In case of multiple files, filenames are ordered lexicographically and run in order.
21+
- Additional arguments provided for PSQL shell will be applied to all the files.
2122

2223
## Dependencies on other Github Actions
2324

@@ -33,11 +34,9 @@ Alternatively, if enough permissions are not granted on the service principal or
3334

3435
* Configuring firewall rules before running the action
3536

36-
If firewall rules are already added in Azure database for PostgreSQL, [Azure Login](https://github.com/Azure/login) action is not required in the workflow and postgresql-action will proceed to execute the SQL scripts.
37-
38-
For Github hosted runners which are usually Azure VMs, users could handle the firewall rules by enabling the option on the PostgreSQL DB in Azure portal to allow any Azure VMs in the tenant to have access to the DB.
39-
40-
For self-hosted runners, firewall rules need to be explicitly managed by user using CLI/PS scripts.
37+
- If firewall rules are already added in Azure database for PostgreSQL, [Azure Login](https://github.com/Azure/login) action is not required in the workflow and postgresql-action will proceed to execute the SQL scripts.
38+
- For Github hosted runners which are usually Azure VMs, users could handle the firewall rules by enabling the option on the PostgreSQL DB in Azure portal to allow any Azure VMs in the tenant to have access to the DB.
39+
- For self-hosted runners, firewall rules need to be explicitly managed by user using CLI/PS scripts.
4140

4241
## Create an Azure database for PostgreSQL server and deploy using GitHub Actions
4342
1. Follow the tutorial [Azure Database for PostgreSQL server Quickstart](https://docs.microsoft.com/en-us/azure/postgresql/quickstart-create-server-database-portal)

0 commit comments

Comments
 (0)