فهرست منبع

fix gitlab secret name

Mohammed Nafees 4 سال پیش
والد
کامیت
eb4d90e26a
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      internal/integrations/ci/gitlab/ci.go

+ 2 - 1
internal/integrations/ci/gitlab/ci.go

@@ -423,7 +423,8 @@ func (g *GitlabCI) deleteGitlabSecret(client *gitlab.Client) error {
 }
 
 func (g *GitlabCI) getPorterTokenSecretName() string {
-	return fmt.Sprintf("PORTER_TOKEN_%d_%s", g.ProjectID, getGitlabStageJobName(g.ReleaseName))
+	return fmt.Sprintf("PORTER_TOKEN_%d_%s", g.ProjectID,
+		fmt.Sprintf("porter-%s", strings.ToLower(strings.ReplaceAll(g.ReleaseName, "-", "_"))))
 }
 
 func getGitlabStageJobName(releaseName string) string {