From c73afb77ab9b8d2ba8f993ad35ab56a4afb3f2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hellmann?= Date: Wed, 13 Mar 2024 19:20:25 +0100 Subject: [PATCH] fix: remove base64 encoding of zerops yaml --- src/cmd/serviceDeploy.go | 3 +-- src/cmd/servicePush.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmd/serviceDeploy.go b/src/cmd/serviceDeploy.go index 34720923..63452b63 100644 --- a/src/cmd/serviceDeploy.go +++ b/src/cmd/serviceDeploy.go @@ -2,7 +2,6 @@ package cmd import ( "context" - "encoding/base64" "io" "time" @@ -137,7 +136,7 @@ func serviceDeployCmd() *cmdBuilder.Cmd { Id: appVersion.Id, }, body.PutAppVersionDeploy{ - ZeropsYaml: types.NewMediumTextNull(base64.StdEncoding.EncodeToString(configContent)), + ZeropsYaml: types.NewMediumTextNull(string(configContent)), }, ) if err != nil { diff --git a/src/cmd/servicePush.go b/src/cmd/servicePush.go index bbdda28d..d380e5b2 100644 --- a/src/cmd/servicePush.go +++ b/src/cmd/servicePush.go @@ -2,7 +2,6 @@ package cmd import ( "context" - "encoding/base64" "io" "time" @@ -143,7 +142,7 @@ func servicePushCmd() *cmdBuilder.Cmd { Id: appVersion.Id, }, body.PutAppVersionBuildAndDeploy{ - ZeropsYaml: types.MediumText(base64.StdEncoding.EncodeToString(configContent)), + ZeropsYaml: types.MediumText(configContent), Source: types.NewStringNull(sourceName), }, )