-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.13 KB
/
acceptance-to-test.yaml
File metadata and controls
37 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Copy CMS content from acceptance to test
on:
workflow_dispatch:
jobs:
copy-db:
environment: copy
runs-on: ubuntu-latest
container:
image: postgres:16
steps:
- name: pg_dump
env:
PGPASSWORD: ${{ secrets.DB_PASSWORD_ACCEPTANCE }}
run: >
pg_dump
--username=holon-acceptance
--no-privileges
--no-owner
--host=postgres.zenmo.com
--exclude-table=holon_cache
--dbname=holon-acceptance
--format=custom
--file=acceptance.pg_dump
- name: pg_restore
env:
PGPASSWORD: ${{ secrets.DB_PASSWORD_TEST }}
run: >
pg_restore
--username=holon-test
--clean
--no-owner
--no-privileges
--host=postgres.zenmo.com
--dbname=holon-test
acceptance.pg_dump