I have a massive amount (100+) different hosts that i can deploy my product to. I have to be able to deploy the product to each one of them separately. Creating different tasks for all of these with only different host seems unmanagable. It would look something like:
deploy_to_host1:
stage: deploy
image: image
script:
- do deployment to host 1 here
deploy_to_host2:
stage: deploy
image: image
script:
- do deployment to host 2 here
etc
One other possibility is to have one task and while running the task i can add variable host=hostname.
deploy_to_host:
stage: deploy
image: image
script:
- do deployment to $host variable here
From code perspective a lot cleaner, but this is also unmanageable because i cant memorize all different possible hostnames. What is the recommended solution for this in GitLab CI?