Skip to content

Commit

Permalink
use correct old version dir
Browse files Browse the repository at this point in the history
  • Loading branch information
phamminh0811 committed May 15, 2024
1 parent bd08c0a commit 6dc194c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/updates/prepare_cosmovisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ 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}
docker build --platform linux/amd64 --no-cache --build-arg source=./_build/core-${OLD_VERSION:1}/ --tag classic-terra/terraclassic.terrad-binary.old -f Dockerfile.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 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
Expand Down

0 comments on commit 6dc194c

Please sign in to comment.