Description
When creating a stack from a Git repository, using a stack name that contains uppercase letters results in an inconsistent deployment flow.
Steps to reproduce
- Create a new stack from a Git repository.
- Enter a stack name containing uppercase letters (e.g. Zerobyte).
- Deploy the stack.
The deployment proceeds as follows:
Connects to the repository.
Clones the repository.
Fetches the branch.
Reads the compose file.
Only then fails with:
Error: Stack name must be lowercase, start with a letter or number, and contain only letters, numbers, hyphens, and underscores
At this point, the repository has already been cloned into:
DATA_DIR/{environment}/Zerobyte
If I then rename the stack to zerobyte and deploy again, the deployment succeeds, but Dockhand clones the repository again into:
DATA_DIR/{environment}/zerobyte
This leaves the original Zerobyte directory behind as an orphaned/unused clone.
Dockhand version
1.0.37
Hawser version (if used)
No response
Connection mode
socket
Please confirm the following
Description
When creating a stack from a Git repository, using a stack name that contains uppercase letters results in an inconsistent deployment flow.
Steps to reproduce
The deployment proceeds as follows:
At this point, the repository has already been cloned into:
DATA_DIR/{environment}/ZerobyteIf I then rename the stack to zerobyte and deploy again, the deployment succeeds, but Dockhand clones the repository again into:
DATA_DIR/{environment}/zerobyteThis leaves the original Zerobyte directory behind as an orphaned/unused clone.
Dockhand version
1.0.37
Hawser version (if used)
No response
Connection mode
socket
Please confirm the following