From cda8f5592f00950d5552f86e1360b44119ecf87d Mon Sep 17 00:00:00 2001 From: Anh Minh <1phamminh0811@gmail.com> Date: Wed, 15 May 2024 16:41:32 +0700 Subject: [PATCH] use Dockerfile.old to build old version --- contrib/updates/prepare_cosmovisor.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/updates/prepare_cosmovisor.sh b/contrib/updates/prepare_cosmovisor.sh index 5a3a1a944..b55fad1be 100644 --- a/contrib/updates/prepare_cosmovisor.sh +++ b/contrib/updates/prepare_cosmovisor.sh @@ -30,8 +30,7 @@ fi ## check if $BUILDDIR/old/terrad exists if [ ! -f "$BUILDDIR/old/terrad" ]; then mkdir -p $BUILDDIR/old - cp ./contrib/updates/Dockerfile.old _build/core-${OLD_VERSION:1}/Dockerfile - docker build --platform linux/amd64 --no-cache --build-arg source=./_build/core-${OLD_VERSION:1}/ --tag classic-terra/terraclassic.terrad-binary.old . + docker build --platform linux/amd64 --no-cache --build-arg source=./_build/core-${OLD_VERSION:1}/ --tag classic-terra/terraclassic.terrad-binary.old -f contrib/updates/Dockerfile.old . docker create --platform linux/amd64 --name old-temp classic-terra/terraclassic.terrad-binary.old:latest docker cp old-temp:/usr/local/bin/terrad $BUILDDIR/old/ docker rm old-temp