You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,24 @@
1
1
# GitHub Action for deploying updates to Azure Database for PostgreSQL server
2
2
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.
4
4
5
5
Get started today with a [free Azure account](https://azure.com/free/open-source)!
6
6
7
7
This repository contains GitHub Action for [Azure database for PostgreSQL server](https://github.com/Azure/postgresql-action) to deploy .
8
8
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.
10
10
11
11
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).
12
12
13
13
The definition of this Github Action is in [action.yml](https://github.com/Azure/postgresql-action/blob/master/action.yml).
14
14
15
15
# End-to-End Sample Workflow
16
16
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/<anyregex>.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/<anyregex>.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.
21
22
22
23
## Dependencies on other Github Actions
23
24
@@ -33,11 +34,9 @@ Alternatively, if enough permissions are not granted on the service principal or
33
34
34
35
* Configuring firewall rules before running the action
35
36
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.
41
40
42
41
## Create an Azure database for PostgreSQL server and deploy using GitHub Actions
43
42
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