From 938de617d3688ce4ddb7b7d149a74561e73806a3 Mon Sep 17 00:00:00 2001 From: Jianrong Date: Mon, 13 Nov 2023 16:09:10 +1100 Subject: [PATCH] Allow the devnet environment to auto deploy new and old code --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 756511fd4e..5cc41e4120 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,9 +111,13 @@ jobs: before_script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - docker --version # document the version travis is using + - docker pull xinfinorg/devnet:latest # build the "previous" tag so that our devnet environment can run with both old and new code at the same time. + - docker tag xinfinorg/devnet:latest xinfinorg/devnet:previous + - docker rmi xinfinorg/devnet:latest - docker build -t xinfinorg/devnet:latest -f cicd/Dockerfile . script: - docker push xinfinorg/devnet:latest + - docker push xinfinorg/devnet:previous - stage: (Devnet)Terraform plan if: branch = dev-upgrade AND type = push AND tag IS blank