Hi, I try to deploy a manual build to a subdomain, when the corresponding commit is a tag.
I build on GitLab and deploying with the netlify-cli works if I create the site before. However I haven’t found out how to deploy to a sub-domain (just like a branch deploy would work).
Alternatively I tried to create a new site for each tag using
netlify api createSite --data '{"custom_domain" : "branchname.subdomain.mene.dev", "name": "branchname.subdomain"}'
The new site is created, but it seems the custom_domain is ignored.
I also tried updateSite but again no effect.
That’s unusual, since it’s the same thing our API does and how we do it from app.netlify.com. Can you try making the api call directly without using the cli and see if that works as expected? You can find details on Netlify API documentation .