-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (46 loc) · 1.56 KB
/
acceptance-to-test.yaml
File metadata and controls
49 lines (46 loc) · 1.56 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
38
39
40
41
42
43
44
45
46
47
48
49
name: Acceptance to test, copy CMS content
on:
workflow_dispatch:
jobs:
copy-db:
runs-on: ubuntu-latest
container:
image: postgres:16
steps:
- name: pg_dump
env:
PGPASSWORD: ${{ secrets.DB_PASSWORD_ACCEPTANCE }}
run: >
pg_dump
--username=holon-acceptance
--dbname=holon-acceptance
--no-privileges
--no-owner
--host=postgres.zenmo.com
--exclude-table=holon_cache
--format=custom
--file=acceptance.pg_dump
- name: pg_restore
env:
PGPASSWORD: ${{ secrets.DB_PASSWORD_TEST }}
run: >
pg_restore
--username=holon-test
--dbname=holon-test
--clean
--no-owner
--no-privileges
--host=postgres.zenmo.com
acceptance.pg_dump
copy-pictures:
runs-on: ubuntu-latest
container:
image: rclone/rclone:1.69.3
steps:
- name: rclone config
run: >
rclone config create holonstorage azureblob
account=holonstorage
key=${{ secrets.AZURE_STORAGE_KEY }}
- name: rclone copy
run: rclone copy holonstorage:media-acceptatie holonstorage:media-test