Commit 1f41ee5f authored by Sebastien Gardoll's avatar Sebastien Gardoll
Browse files

fix retag for latest

parent 61462a49
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -60,14 +60,12 @@ function build_and_push() {
                            --build-arg "ESGF_IMAGES_HUB=${images_hub}" \
                            --build-arg "ESGF_VERSION=${esgf_ver}" \
                            -t "${images_hub}/${img}" .
  fi
  
  if [[ "${is_latest}" = "${TRUE}" ]]; then
    docker tag "${images_hub}/${img}" "${images_hub}/${latest_img}"
  fi

    #docker build --no-cache -t $images_hub/$img .
  fi

  # optionally push the module to Docker Hub
  if [[ $pushit == "${TRUE}" ]]; then
       docker push $images_hub/$img