Skip to content

Commit

Permalink
Ensure valid Docker image name
Browse files Browse the repository at this point in the history
The repository name for Docker images are supposed to be lowercase. If the Git repository has uppercase letters, the command fails with no workaround at a fix. This change ensures that the repository name for images are made lower-case.
  • Loading branch information
hussainweb committed Apr 20, 2020
1 parent 6c5978d commit ed8c0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DbDockerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function getImagePathFromRepoUrl(string $url, string $tag): string
throw new InvalidOptionException("The specified git remote URL isn't supported");
}

return sprintf("%s/%s/db:%s", $registryDomain, $path, $tag);
return sprintf("%s/%s/db:%s", $registryDomain, strtolower($path), $tag);
}

protected function getDbFile(): string
Expand Down

0 comments on commit ed8c0ef

Please sign in to comment.