File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments