Merge pull request #1071 from moonstream-to/mdbv3-scm

Initial scm for moonstreamdb-v3
pull/1072/head
Sergei Sumarokov 2024-05-24 19:00:26 +03:00 zatwierdzone przez GitHub
commit e27476ac53
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 39 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,10 @@
stdargs @ { scm, ... }:
scm.schema {
guid = "S0K5PY7LHKC4TFXZ";
name = "blockchain";
upgrade_sql = ./upgrade.sql;
dependencies = [
];
}

Wyświetl plik

@ -0,0 +1,29 @@
with builtins;
let
scm_repos = [
(getEnv "SCM_GIT")
(fetchGit {
url = "git@gitlab.com:deltaex/schematic.git";
rev = "ba5d7b40255e5da9a74e666dd88e309dae40fbd2";
})
];
scm_repo = head (filter (x: x != "") scm_repos);
scm = (import scm_repo {
verbose = true;
repos = [
"."
(getEnv "MDP_GIT")
(fetchGit {
url = "git@github.com:moonstream-to/api.git";
rev = "d45333dc0ec0f2233c66472ce9346bd2827756ed";
})
] ++ scm_repos;
});
in rec {
schematic = scm.shell.overrideAttrs ( oldAttrs : {
shellHook = oldAttrs.shellHook + ''
[ -n "$ENV" -a "$ENV" != "dev" ]
source /home/moonstream/moonstream-db-v3-indexes-secrets/pg.env
'';
});
}