Skip to content

Commit 369c6c7

Browse files
committed
WIP acceptance to prod action
1 parent 0d2c4be commit 369c6c7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Copy CMS content from acceptance to test
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
copy-db:
8+
environment: copy
9+
runs-on: ubuntu-latest
10+
container:
11+
image: postgres:16
12+
steps:
13+
- name: pg_dump
14+
env:
15+
PGPASSWORD: ${{ secrets.DB_PASSWORD_ACCEPTANCE }}
16+
run: >
17+
pg_dump
18+
--username=holon-acceptance
19+
--no-privileges
20+
--no-owner
21+
--host=postgres.zenmo.com
22+
--exclude-table=holon_cache
23+
--dbname=holon-acceptance
24+
--format=custom
25+
--file=acceptance.pg_dump
26+
- name: pg_restore
27+
env:
28+
PGPASSWORD: ${{ secrets.DB_PASSWORD_TEST }}
29+
run: >
30+
pg_restore
31+
--username=holon-test
32+
--clean
33+
--no-owner
34+
--no-privileges
35+
--host=postgres.zenmo.com
36+
--dbname=holon-test
37+
acceptance.pg_dump

0 commit comments

Comments
 (0)