message: chore: update cached checksum only after containers built and pushed
diff: @@ -41,18 +41,12 @@ jobs:
  CHECKSUM_NEW="$(cat checksum.current.txt)"
  if [ "${CHECKSUM_OLD}" == "${CHECKSUM_NEW}" ]; then
  echo "Checksum did not change. Halting the job."
  - circleci step halt
  + circleci-agent step halt
  fi
  fi
  mv checksum.current.txt checksum.previous.txt
  echo "Checksum changed. Continuing the job."
  - - save_cache:
  - name: 'Save new checksum.txt to cache'
  - key: cache-nextclade-builder-container-v1-cache-{{ checksum "checksum.previous.txt" }}
  - paths:
  - - checksum.previous.txt
  -
  - run:
  name: 'Build "Builder" container image'
  command: |
  @@ -71,6 +65,12 @@ jobs:
  ./scripts/docker_builder_image_push.sh "builder"
  ./scripts/docker_builder_image_push.sh "web"
  + - save_cache:
  + name: 'Save new checksum.txt to cache'
  + key: cache-nextclade-builder-container-v1-cache-{{ checksum "checksum.previous.txt" }}
  + paths:
  + - checksum.previous.txt
  +
  Build-Web:
  resource_class: medium
  