axelerant / platformsh-action

Platform.sh Actions
MIT License
3 stars 1 forks source link

Deployment Failure Due to All Development Environments in Use #32

Open zeshanziya opened 3 months ago

zeshanziya commented 3 months ago

Platform.sh by default provides 1 production and 3 development environments. If all development environments are in use and we try to deploy, it fails without any specific error. Additionally, we cannot deploy the same reference again even after clearing the development environments.

Solutions: List all used environments and check if the current reference can be deployed. If not, do not attempt to deploy and throw an error specifying that no development environment is available.

zeshanziya commented 3 months ago

According to the Platform.sh documentation, it provides 1 production environment and 3 development environments by default. This limit can be increased, so we need a way to define the number of development environments allowed, with the default value set to 3. Users should be able to change this value if required.