|
|
@@ -26,6 +26,7 @@ import (
|
|
|
porter_app "github.com/porter-dev/porter/cli/cmd/porter_app"
|
|
|
"github.com/porter-dev/porter/cli/cmd/preview"
|
|
|
previewV2Beta1 "github.com/porter-dev/porter/cli/cmd/preview/v2beta1"
|
|
|
+ cliUtils "github.com/porter-dev/porter/cli/cmd/utils"
|
|
|
previewInt "github.com/porter-dev/porter/internal/integrations/preview"
|
|
|
"github.com/porter-dev/porter/internal/templater/utils"
|
|
|
"github.com/porter-dev/switchboard/pkg/drivers"
|
|
|
@@ -669,7 +670,7 @@ func (d *DeployDriver) createApplication(resource *switchboardModels.Resource, c
|
|
|
|
|
|
if repoName := os.Getenv("PORTER_REPO_NAME"); repoName != "" {
|
|
|
if repoOwner := os.Getenv("PORTER_REPO_OWNER"); repoOwner != "" {
|
|
|
- repoSuffix = strings.ToLower(strings.ReplaceAll(fmt.Sprintf("%s-%s", repoOwner, repoName), "_", "-"))
|
|
|
+ repoSuffix = cliUtils.SlugifyRepoSuffix(repoOwner, repoName)
|
|
|
}
|
|
|
}
|
|
|
|