Skip to content

Commit cb92d62

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
Change KOTS publish to use an envvar
1 parent 91caa88 commit cb92d62

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.werft/jobs/build/publish-kots.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,11 @@ export async function publishKots(werft: Werft, config: JobConfig) {
2222
// Update the additionalImages in the kots-app.yaml
2323
exec(`/tmp/installer mirror kots --file ${REPLICATED_YAML_DIR}/kots-app.yaml`);
2424

25-
const app = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.app}' | base64 -d`);
26-
const token = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.token}' | base64 -d`);
27-
2825
const replicatedChannel = config.mainBuild ? 'Unstable' : config.repository.branch;
2926

3027
exec(`replicated release create \
3128
--lint \
3229
--ensure-channel \
33-
--app ${app} \
34-
--token ${token} \
3530
--yaml-dir ${REPLICATED_YAML_DIR} \
3631
--version ${config.version} \
3732
--release-notes "# ${config.version}\n\nSee [Werft job](https://werft.gitpod-dev.com/job/gitpod-build-${config.version}/logs) for notes" \

0 commit comments

Comments
 (0)