Skip to content

Commit 80e0e2a

Browse files
authored
chore: adds eventdb deployment (#749)
1 parent 4f4d904 commit 80e0e2a

File tree

4 files changed

+114
-15
lines changed

4 files changed

+114
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ permissions:
1010

1111
jobs:
1212
ci:
13-
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.7.1
13+
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.7.3
1414
with:
15-
forge_version: 0.14.0
15+
forge_version: 0.16.0

blueprint.cue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ global: {
5353
},
5454
]
5555
}
56+
deployment: {
57+
registries: {
58+
containers: ci.providers.aws.ecr.registry
59+
modules: ci.providers.aws.ecr.registry + "/catalyst-deployments"
60+
}
61+
repo: {
62+
url: "https://github.com/input-output-hk/catalyst-world"
63+
ref: "master"
64+
}
65+
root: "k8s"
66+
}
5667
repo: {
5768
defaultBranch: "main"
5869
name: "input-output-hk/catalyst-core"

containers/event-db-migrations/blueprint.cue

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,94 @@
11
version: "1.0.0"
22
project: {
33
name: "event-db-migrations"
4+
deployment: {
5+
on: {
6+
merge: {}
7+
tag: {}
8+
}
9+
10+
bundle: modules: main: {
11+
name: "app"
12+
version: "0.11.0"
13+
values: {
14+
jobs: migration: containers: main: {
15+
image: {
16+
name: _ @forge(name="CONTAINER_IMAGE")
17+
tag: _ @forge(name="GIT_HASH_OR_TAG")
18+
}
19+
env: {
20+
DB_HOST: {
21+
secret: {
22+
name: "db"
23+
key: "host"
24+
}
25+
}
26+
DB_NAME: {
27+
value: "eventdb"
28+
}
29+
DB_PORT: {
30+
secret: {
31+
name: "db"
32+
key: "port"
33+
}
34+
}
35+
DB_ROOT_NAME: {
36+
value: "postgres"
37+
}
38+
DB_SUPERUSER: {
39+
secret: {
40+
name: "root"
41+
key: "username"
42+
}
43+
}
44+
DB_SUPERUSER_PASSWORD: {
45+
secret: {
46+
name: "root"
47+
key: "password"
48+
}
49+
}
50+
DB_USER: {
51+
secret: {
52+
name: "db"
53+
key: "username"
54+
}
55+
}
56+
DB_USER_PASSWORD: {
57+
secret: {
58+
name: "db"
59+
key: "password"
60+
}
61+
}
62+
INIT_AND_DROP_DB: {
63+
value: string | *"true"
64+
}
65+
STAGE: {
66+
value: string | *"dev"
67+
}
68+
}
69+
mounts: state: {
70+
ref: volume: name: "state"
71+
path: "/eventdb/tmp"
72+
readOnly: false
73+
}
74+
}
75+
76+
secrets: {
77+
db: {
78+
ref: "db/eventdb"
79+
}
80+
root: {
81+
ref: "db/root_account"
82+
}
83+
}
84+
85+
volumes: state: {
86+
size: "1Mi"
87+
}
88+
}
89+
}
90+
}
91+
492
release: {
593
docker: {
694
on: {

src/event-db/stage_data/preprod/00001_fund14_event.sql

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ INSERT INTO event (
2929
14,
3030
'Fund 14',
3131
'Catalyst Testnet - Fund 14',
32-
'2025-05-23 12:00:00', -- Registration Snapshot Time
33-
'2025-05-23 12:15:00', -- Snapshot Start.
32+
'2025-06-12 10:00:00', -- Registration Snapshot Time
33+
'2025-06-12 10:15:00', -- Snapshot Start.
3434
25000000, -- Voting Power Threshold
3535
100, -- Max Voting Power PCT
3636
NULL, -- Review Rewards
37-
'2025-05-21 11:00:00', -- Start Time
38-
'2025-06-15 21:00:00', -- End Time
39-
'2025-05-21 11:00:00', -- Insight Sharing Start
40-
'2025-05-21 11:00:00', -- Proposal Submission Start
41-
'2025-05-21 11:00:00', -- Refine Proposals Start
42-
'2025-05-21 11:00:00', -- Finalize Proposals Start
43-
'2025-05-21 11:00:00', -- Proposal Assessment Start
44-
'2025-05-21 11:00:00', -- Assessment QA Start
45-
'2025-05-27 17:00:00', -- Voting Starts
46-
'2025-06-13 09:00:00', -- Voting Ends
47-
'2025-06-15 21:00:00', -- Tallying Ends
37+
'2025-06-04 10:00:00', -- Start Time
38+
'2025-06-21 02:00:00', -- End Time
39+
'2025-06-04 10:00:00', -- Insight Sharing Start
40+
'2025-06-04 10:00:00', -- Proposal Submission Start
41+
'2025-06-04 10:00:00', -- Refine Proposals Start
42+
'2025-06-04 10:00:00', -- Finalize Proposals Start
43+
'2025-06-04 10:00:00', -- Proposal Assessment Start
44+
'2025-06-04 10:00:00', -- Assessment QA Start
45+
'2025-06-16 12:00:00', -- Voting Starts
46+
'2025-06-18 09:00:00', -- Voting Ends
47+
'2025-06-21 02:00:00', -- Tallying Ends
4848
NULL, -- Block 0 Data
4949
NULL, -- Block 0 Hash
5050
1, -- Committee Size

0 commit comments

Comments
 (0)