Serverless Environments
Today, specifying an environment in gitlab-ci.yml
doesn't affect the function URL. A function defined in serverless.yml
always deploys to the same URL regardless of the environment.
If you deploy a function to staging in an MR pipeline the function will show up on the Operations > Serverless page showing *
as the scope. If you then merge the MR and deploy to prod on the master pipeline it will overwrite the existing function.
The environments page looks like this
Expected behavior
Defining a deploy environment in gitlab-ci.yml
should change the environment where a function is deployed and should generate a separate URL on the Operations > Serverless page.