소스 검색

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 {
 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 {
 func getGitlabStageJobName(releaseName string) string {