From 603bc019e193052e30a7b347a0f3e538c16ff7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Wed, 2 Nov 2022 12:12:51 +0100 Subject: [PATCH] build: use specific tag for nightly deployments This patch is required to fix the nightly deployment: * We need to use the exact docker image tag what we built earlier * Migration should be full instead of snapshot (snapshot couldn't update existing, but older dbs) Change-Id: Id2a2070638072a7b0021326326b0d53533817168 --- Earthfile | 1 + scripts/deploy/deploy-nightly.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Earthfile b/Earthfile index 8055a06c8..880b2f40d 100644 --- a/Earthfile +++ b/Earthfile @@ -86,6 +86,7 @@ deploy-remote: ENV NOMAD_ADDR=$nomad ENV IP=$ip ENV IMAGE=$IMAGE + ENV TAG=$TAG RUN --push ./deploy-nightly.sh deploy-local: diff --git a/scripts/deploy/deploy-nightly.sh b/scripts/deploy/deploy-nightly.sh index f9b42c5b9..c293648e0 100755 --- a/scripts/deploy/deploy-nightly.sh +++ b/scripts/deploy/deploy-nightly.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -ex storj-up init nomad --name=core --ip=$IP minimal,gc -storj-up image satellite-api,storagenode,gc $IMAGE +storj-up image satellite-api,storagenode,gc $IMAGE:$TAG storj-up persist storagenode,satellite-api,gc -storj-up env set satellite-api STORJ_DATABASE_OPTIONS_MIGRATION_UNSAFE=snapshot,testdata +storj-up env set satellite-api STORJ_DATABASE_OPTIONS_MIGRATION_UNSAFE=full,testdata nomad run storj.hcl