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
This commit is contained in:
Márton Elek 2022-11-02 12:12:51 +01:00 committed by Storj Robot
parent 7ac1e38e28
commit 603bc019e1
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ deploy-remote:
ENV NOMAD_ADDR=$nomad ENV NOMAD_ADDR=$nomad
ENV IP=$ip ENV IP=$ip
ENV IMAGE=$IMAGE ENV IMAGE=$IMAGE
ENV TAG=$TAG
RUN --push ./deploy-nightly.sh RUN --push ./deploy-nightly.sh
deploy-local: deploy-local:

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
storj-up init nomad --name=core --ip=$IP minimal,gc 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 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 nomad run storj.hcl