2
0
Эх сурвалжийг харах

rename token for preview env

Mohammed Nafees 3 жил өмнө
parent
commit
06b6006819

+ 3 - 3
internal/integrations/ci/actions/preview.go

@@ -214,10 +214,10 @@ func DeleteEnv(opts *EnvOpts) error {
 
 func getPreviewEnvSecretName(projectID, clusterID uint, instanceName string) string {
 	if instanceName != "" {
-		return fmt.Sprintf("PORTER_TOKEN_%s_%d_%d", strings.ToUpper(instanceName), projectID, clusterID)
+		return fmt.Sprintf("PORTER_PREVIEW_%s_%d_%d", strings.ToUpper(instanceName), projectID, clusterID)
 	}
 
-	return fmt.Sprintf("PORTER_TOKEN_%d_%d", projectID, clusterID)
+	return fmt.Sprintf("PORTER_PREVIEW_%d_%d", projectID, clusterID)
 }
 
 func getPreviewApplyActionYAML(opts *EnvOpts) ([]byte, error) {
@@ -231,7 +231,7 @@ func getPreviewApplyActionYAML(opts *EnvOpts) ([]byte, error) {
 			opts.GitInstallationID,
 			opts.GitRepoOwner,
 			opts.GitRepoName,
-			"v0.2.0",
+			"v0.2.1",
 		),
 	}