diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff7e5d69d5..ef1bb73e3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,6 @@ permissions: jobs: ci: - uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.7.1 + uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.7.3 with: - forge_version: 0.14.0 \ No newline at end of file + forge_version: 0.16.0 \ No newline at end of file diff --git a/blueprint.cue b/blueprint.cue index 608f5fbdee..efd41e3781 100644 --- a/blueprint.cue +++ b/blueprint.cue @@ -53,6 +53,17 @@ global: { }, ] } + deployment: { + registries: { + containers: ci.providers.aws.ecr.registry + modules: ci.providers.aws.ecr.registry + "/catalyst-deployments" + } + repo: { + url: "https://github.com/input-output-hk/catalyst-world" + ref: "master" + } + root: "k8s" + } repo: { defaultBranch: "main" name: "input-output-hk/catalyst-core" diff --git a/containers/event-db-migrations/blueprint.cue b/containers/event-db-migrations/blueprint.cue index c0c84f7200..586006bc39 100644 --- a/containers/event-db-migrations/blueprint.cue +++ b/containers/event-db-migrations/blueprint.cue @@ -1,6 +1,94 @@ version: "1.0.0" project: { name: "event-db-migrations" + deployment: { + on: { + merge: {} + tag: {} + } + + bundle: modules: main: { + name: "app" + version: "0.11.0" + values: { + jobs: migration: containers: main: { + image: { + name: _ @forge(name="CONTAINER_IMAGE") + tag: _ @forge(name="GIT_HASH_OR_TAG") + } + env: { + DB_HOST: { + secret: { + name: "db" + key: "host" + } + } + DB_NAME: { + value: "eventdb" + } + DB_PORT: { + secret: { + name: "db" + key: "port" + } + } + DB_ROOT_NAME: { + value: "postgres" + } + DB_SUPERUSER: { + secret: { + name: "root" + key: "username" + } + } + DB_SUPERUSER_PASSWORD: { + secret: { + name: "root" + key: "password" + } + } + DB_USER: { + secret: { + name: "db" + key: "username" + } + } + DB_USER_PASSWORD: { + secret: { + name: "db" + key: "password" + } + } + INIT_AND_DROP_DB: { + value: string | *"true" + } + STAGE: { + value: string | *"dev" + } + } + mounts: state: { + ref: volume: name: "state" + path: "/eventdb/tmp" + readOnly: false + } + } + + secrets: { + db: { + ref: "db/eventdb" + } + root: { + ref: "db/root_account" + } + } + + volumes: state: { + size: "1Mi" + } + } + } + } + release: { docker: { on: { diff --git a/src/event-db/stage_data/preprod/00001_fund14_event.sql b/src/event-db/stage_data/preprod/00001_fund14_event.sql index ace6b3fd84..704cf38497 100644 --- a/src/event-db/stage_data/preprod/00001_fund14_event.sql +++ b/src/event-db/stage_data/preprod/00001_fund14_event.sql @@ -29,22 +29,22 @@ INSERT INTO event ( 14, 'Fund 14', 'Catalyst Testnet - Fund 14', - '2025-05-23 12:00:00', -- Registration Snapshot Time - '2025-05-23 12:15:00', -- Snapshot Start. + '2025-06-12 10:00:00', -- Registration Snapshot Time + '2025-06-12 10:15:00', -- Snapshot Start. 25000000, -- Voting Power Threshold 100, -- Max Voting Power PCT NULL, -- Review Rewards - '2025-05-21 11:00:00', -- Start Time - '2025-06-15 21:00:00', -- End Time - '2025-05-21 11:00:00', -- Insight Sharing Start - '2025-05-21 11:00:00', -- Proposal Submission Start - '2025-05-21 11:00:00', -- Refine Proposals Start - '2025-05-21 11:00:00', -- Finalize Proposals Start - '2025-05-21 11:00:00', -- Proposal Assessment Start - '2025-05-21 11:00:00', -- Assessment QA Start - '2025-05-27 17:00:00', -- Voting Starts - '2025-06-13 09:00:00', -- Voting Ends - '2025-06-15 21:00:00', -- Tallying Ends + '2025-06-04 10:00:00', -- Start Time + '2025-06-21 02:00:00', -- End Time + '2025-06-04 10:00:00', -- Insight Sharing Start + '2025-06-04 10:00:00', -- Proposal Submission Start + '2025-06-04 10:00:00', -- Refine Proposals Start + '2025-06-04 10:00:00', -- Finalize Proposals Start + '2025-06-04 10:00:00', -- Proposal Assessment Start + '2025-06-04 10:00:00', -- Assessment QA Start + '2025-06-16 12:00:00', -- Voting Starts + '2025-06-18 09:00:00', -- Voting Ends + '2025-06-21 02:00:00', -- Tallying Ends NULL, -- Block 0 Data NULL, -- Block 0 Hash 1, -- Committee Size