totalTokens=38045
parts=60
tokensPerPart=$(( totalTokens / parts ))
for i in {1..60}; do
startTokenId=$(( (i - 1) * tokensPerPart + 1 ))
endTokenId=$(( i * tokensPerPart ))
tokenIdRange="${startTokenId}-${endTokenId}"
deploymentName="nft-generator-${i}"
# Replace placeholders in the deployment template
sed -e "s|NFT_GENERATOR_NAME|${deploymentName}|g" \
-e "s|YOUR_IMAGE_NAME|registry.digitalocean.com/crowd-image-container/nft-generator:v3|g" \
-e "s|TOKEN_ID_RANGE_VALUE|${tokenIdRange}|g" \
deployment_template.yaml > "deployment_${deploymentName}.yaml"