From 24b63908edbd39d630fe3a6403e3eb3173c37a5c Mon Sep 17 00:00:00 2001 From: kanshi <46557+kanshi@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:33:55 +0200 Subject: [PATCH] Add dev phase deploy scripts --- operations/deploy-distribution-dev.hcl | 74 ++++++++++++++++++++++++ operations/deploy-relay-registry-dev.hcl | 71 +++++++++++++++++++++++ smartweave/scripts/deploy.ts | 2 +- 3 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 operations/deploy-distribution-dev.hcl create mode 100644 operations/deploy-relay-registry-dev.hcl diff --git a/operations/deploy-distribution-dev.hcl b/operations/deploy-distribution-dev.hcl new file mode 100644 index 0000000..32f892b --- /dev/null +++ b/operations/deploy-distribution-dev.hcl @@ -0,0 +1,74 @@ +job "deploy-distribution-dev" { + datacenters = ["ator-fin"] + type = "batch" + + reschedule { + attempts = 0 + } + + task "deploy-distribution-task" { + driver = "docker" + + config { + network_mode = "host" + image = "ghcr.io/ator-development/smart-contracts:0.1.2" + entrypoint = ["npm"] + command = "run" + args = ["deploy"] + volumes = [ + "local/distribution-init-state.json:/usr/src/app/smartweave/dist/contracts/distribution-init-state.json" + ] + } + + vault { + policies = ["distribution-dev"] + } + + template { + data = <