message: chore: halt container build if no changes
diff: version: 2.1
  +
  release_only: &release_only
  filters:
  branches:
  @@ -10,6 +11,7 @@ major_branches_only: &major_branches_only
  branches:
  only: /(ci_wasm)/
  +
  jobs:
  Prepare-Builder-Container:
  resource_class: medium
  @@ -20,6 +22,34 @@ jobs:
  steps:
  - checkout
  + - run:
  + name: 'Create blank checksum.txt'
  + command: |
  + echo "" > checksum.txt
  +
  + - restore_cache:
  + name: 'Restore checksum.txt'
  + keys:
  + - cache-nextclade-builder-container-v1-cache-{{ checksum "checksum.txt" }}
  +
  + - run:
  + name: 'Restore previous checksum.txt from cache, compare, halt if no changes'
  + command: |
  + set -x
  + cat Dockerfile scripts/*.sh .nvmrc .dockerignore .gitignore Makefile .circleci/* | md5sum > checksum.new.txt
  + CHECKSUM_OLD=$(cat checksum.txt)
  + CHECKSUM_NEW=$(cat checksum.new.txt)
  + if [ "${CHECKSUM_OLD}" == "${CHECKSUM_NEW}" ]; then
  + circleci step halt
  + fi
  + mv checksum.new.txt checksum.txt
  +
  + - save_cache:
  + name: 'Save new checksum.txt to cache'
  + key: cache-nextclade-builder-container-v1-cache-{{ checksum "checksum.txt" }}
  + paths:
  + - checksum.txt
  +
  - run:
  name: 'Build "Builder" container image'
  command: |
  