@@ -90,6 +90,59 @@ The following inputs can be used as `step.with` keys:
9090| `timeout` | `5m` | The timeout for the Helm command |
9191| `working-directory` | `.` | The working directory where the action commands will operate |
9292
93+ # ## Setup PostgreSQL Preview Schema
94+
95+ Sets up a PostgreSQL preview schema by cloning a base schema.
96+
97+ # ### Example
98+
99+ ` ` ` yaml
100+ - uses: aboutbits/github-actions-kubernetes/setup-postgres-preview-schema@v3
101+ with:
102+ deployment-name: my-app
103+ namespace: my-namespace
104+ preview-number: ${{ github.event.number }}
105+ ` ` `
106+
107+ # ### Inputs
108+
109+ The following inputs can be used as `step.with` keys :
110+
111+ | Name | Required/Default | Description |
112+ |-------------------|------------------|--------------------------------------------|
113+ | `deployment-name` | required | Name of the deployment |
114+ | `namespace` | required | Kubernetes namespace |
115+ | `preview-number` | required | Preview number (PR number) |
116+ | `secret-name` | `app-secrets` | Name of the secret containing PostgreSQL password |
117+ | `postgres-image` | `postgres:18` | PostgreSQL image to use |
118+ | `base-schema` | `main` | Base schema to copy from |
119+
120+ # ## Teardown PostgreSQL Preview Schema
121+
122+ Drops the PostgreSQL preview schema.
123+
124+ # ### Example
125+
126+ ` ` ` yaml
127+ - uses: aboutbits/github-actions-kubernetes/teardown-postgres-preview-schema@v3
128+ with:
129+ deployment-name: my-app
130+ namespace: my-namespace
131+ preview-number: ${{ github.event.number }}
132+ ` ` `
133+
134+ # ### Inputs
135+
136+ The following inputs can be used as `step.with` keys :
137+
138+ | Name | Required/Default | Description |
139+ |-------------------|------------------|--------------------------------------------|
140+ | `deployment-name` | required | Name of the deployment |
141+ | `namespace` | required | Kubernetes namespace |
142+ | `preview-number` | required | Preview number (PR number) |
143+ | `secret-name` | `app-secrets` | Name of the secret containing PostgreSQL password |
144+ | `postgres-image` | `postgres:18` | PostgreSQL image to use |
145+
93146# # Build & Publish
94147
95148To build and publish the action, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
0 commit comments