<commit_before>#!/bin/bash -ex

declare -a versions=("argon" "boron")
declare -a images=("nsolid" "nsolid-console" "nsolid-storage" "nsolid-cli")

latest=${NSOLID_LTS_LATEST:-'boron'}
registry=${DOCKER_REGISTRY:-'nodesource'}
release=${NSOLID_VERSION}

for lts in "${versions[@]}"
do
  for img in "${images[@]}"
  do
    docker tag nodesource/$img:$lts $registry/$img:$lts-$release
    docker push $registry/$img:$lts-$release
    
    if [ "$lts" == "$latest" ]; then
      docker tag nodesource/$img:$lts $registry/$img:latest
      docker push $registry/$img:latest
    fi
  done
done<commit_msg>add -latest tags to publish script<commit_after>#!/bin/bash -ex

declare -a versions=("argon" "boron")
declare -a images=("nsolid" "nsolid-console" "nsolid-storage" "nsolid-cli")

latest=${NSOLID_LTS_LATEST:-'boron'}
registry=${DOCKER_REGISTRY:-'nodesource'}
release=${NSOLID_VERSION}

for lts in "${versions[@]}"
do
  for img in "${images[@]}"
  do
    docker tag nodesource/$img:$lts $registry/$img:$lts-$release
    docker push $registry/$img:$lts-$release
    
    docker tag nodesource/$img:$lts $registry/$img:$lts-latest
    docker push $registry/$img:$lts-latest

    if [ "$lts" == "$latest" ]; then
      docker tag nodesource/$img:$lts $registry/$img:latest
      docker push $registry/$img:latest
    fi
  done
done
{'fraction_non_alphanumeric': 0.17571644042232276, 'fraction_numerical': 0.0, 'mean_word_length': 4.438524590163935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5856913', 'n_tokens_mistral': 494, 'n_tokens_neox': 461, 'n_words': 103}