Skip to content

Commit eac94bc

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[kots]: lint the manifests
1 parent da68928 commit eac94bc

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.werft/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ pod:
183183
key: segmentIOToken
184184
- name: JAVA_HOME
185185
value: /home/gitpod/.sdkman/candidates/java/current
186+
- name: REPLICATED_APP
187+
valueFrom:
188+
secretKeyRef:
189+
name: replicated
190+
key: app
191+
- name: REPLICATED_API_TOKEN
192+
valueFrom:
193+
secretKeyRef:
194+
name: replicated
195+
key: token
186196
command:
187197
- bash
188198
- -c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function buildAndPublish(werft: Werft, jobConfig: JobConfig) {
3434
if (withContrib || publishRelease) {
3535
exec(`leeway build --docker-build-options network=host --werft=true -c remote ${dontTest ? '--dont-test' : ''} -Dversion=${version} -DimageRepoBase=${imageRepo} contrib:all`);
3636
}
37-
exec(`leeway build --docker-build-options network=host --werft=true -c remote ${dontTest ? '--dont-test' : ''} ${retag} --coverage-output-path=${coverageOutput} -Dversion=${version} -DremoveSources=false -DimageRepoBase=${imageRepo} -DlocalAppVersion=${localAppVersion} -DSEGMENT_IO_TOKEN=${process.env.SEGMENT_IO_TOKEN} -DnpmPublishTrigger=${publishToNpm ? Date.now() : 'false'} -DjbMarketplacePublishTrigger=${publishToJBMarketplace ? Date.now() : 'false'}`);
37+
exec(`leeway build --docker-build-options network=host --werft=true -c remote ${dontTest ? '--dont-test' : ''} ${retag} --coverage-output-path=${coverageOutput} -Dversion=${version} -DremoveSources=false -DimageRepoBase=${imageRepo} -DlocalAppVersion=${localAppVersion} -DSEGMENT_IO_TOKEN=${process.env.SEGMENT_IO_TOKEN} -DREPLICATED_API_TOKEN=${process.env.REPLICATED_API_TOKEN} -DREPLICATED_APP=${process.env.REPLICATED_APP} -DnpmPublishTrigger=${publishToNpm ? Date.now() : 'false'} -DjbMarketplacePublishTrigger=${publishToJBMarketplace ? Date.now() : 'false'}`);
3838
if (publishRelease) {
3939
try {
4040
werft.phase("publish", "checking version semver compliance...");

components/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ packages:
1313
- :publish-api
1414
- dev:all-app
1515
- install/installer:docker
16+
- install/kots:lint
1617
- components/gitpod-protocol:all
1718
- operations/observability/mixins:lint
1819
- name: docker-versions

install/kots/BUILD.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2+
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
3+
4+
packages:
5+
- name: lint
6+
type: generic
7+
srcs:
8+
- "**/*"
9+
argdeps:
10+
- REPLICATED_API_TOKEN
11+
- REPLICATED_APP
12+
config:
13+
commands:
14+
- ["make", "lint"]

0 commit comments

Comments
 (0)