Skip to content

Commit 86e81b3

Browse files
authored
Updated all the jobs according to our folder structure (kubestellar#936)
* Updated all the jobs according to our folder structure * Fixed formatting issue * Added vite base url
1 parent 2a04fcf commit 86e81b3

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

.prow.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ presubmits:
55
clone_uri: 'https://github.com/kubestellar/ui'
66
spec:
77
containers:
8-
- image: node:16
8+
- image: node:20
99
command:
1010
- /bin/bash
1111
- -c
1212
- |
13-
cd frontend
1413
npm ci
1514
npm run lint
1615
resources:
@@ -23,12 +22,11 @@ presubmits:
2322
clone_uri: 'https://github.com/kubestellar/ui'
2423
spec:
2524
containers:
26-
- image: node:16
25+
- image: node:20
2726
command:
2827
- /bin/bash
2928
- -c
3029
- |
31-
cd frontend
3230
npm ci
3331
npm run build
3432
resources:
@@ -41,12 +39,11 @@ presubmits:
4139
clone_uri: 'https://github.com/kubestellar/ui'
4240
spec:
4341
containers:
44-
- image: node:16
42+
- image: node:20
4543
command:
4644
- /bin/bash
4745
- -c
4846
- |
49-
cd frontend
5047
npm ci
5148
npm test
5249
resources:
@@ -59,7 +56,7 @@ presubmits:
5956
clone_uri: 'https://github.com/kubestellar/ui'
6057
spec:
6158
containers:
62-
- image: golang:1.18
59+
- image: golang:1.24
6360
command:
6461
- /bin/bash
6562
- -c
@@ -77,7 +74,7 @@ presubmits:
7774
clone_uri: 'https://github.com/kubestellar/ui'
7875
spec:
7976
containers:
80-
- image: golang:1.18
77+
- image: golang:1.24
8178
command:
8279
- /bin/bash
8380
- -c
@@ -106,13 +103,12 @@ postsubmits:
106103
- -c
107104
- |
108105
# Build and push frontend
109-
cd frontend
110106
buildah bud -t quay.io/kubestellar/ui:frontend-$(git rev-parse --short HEAD) -t quay.io/kubestellar/ui:frontend-latest .
111107
buildah push quay.io/kubestellar/ui:frontend-$(git rev-parse --short HEAD)
112108
buildah push quay.io/kubestellar/ui:frontend-latest
113109
114110
# Build and push backend
115-
cd ../backend
111+
cd backend
116112
buildah bud -t quay.io/kubestellar/ui:backend-$(git rev-parse --short HEAD) -t quay.io/kubestellar/ui:backend-latest .
117113
buildah push quay.io/kubestellar/ui:backend-$(git rev-parse --short HEAD)
118114
buildah push quay.io/kubestellar/ui:backend-latest
@@ -136,13 +132,12 @@ postsubmits:
136132
- -c
137133
- |
138134
# Build and push frontend
139-
cd frontend
140135
buildah bud -t quay.io/kubestellar/ui:frontend-dev-$(git rev-parse --short HEAD) -t quay.io/kubestellar/ui:frontend-dev-latest .
141136
buildah push quay.io/kubestellar/ui:frontend-dev-$(git rev-parse --short HEAD)
142137
buildah push quay.io/kubestellar/ui:frontend-dev-latest
143138
144139
# Build and push backend
145-
cd ../backend
140+
cd backend
146141
buildah bud -t quay.io/kubestellar/ui:backend-dev-$(git rev-parse --short HEAD) -t quay.io/kubestellar/ui:backend-dev-latest .
147142
buildah push quay.io/kubestellar/ui:backend-dev-$(git rev-parse --short HEAD)
148143
buildah push quay.io/kubestellar/ui:backend-dev-latest

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!--security-start-->
2+
23
## Security Announcements
34

45
Join the [kubestellar-security-announce](https://groups.google.com/u/1/g/kubestellar-security-announce) group for emails about security and major API announcements.
@@ -16,7 +17,6 @@ You can also email the private [kubestellar-security-announce@googlegroups.com](
1617
- You think you discovered a vulnerability in another project that KubeStellar depends on
1718
- For projects with their own vulnerability reporting and disclosure process, please report it directly there
1819

19-
2020
### When Should I NOT Report a Vulnerability?
2121

2222
- You need help tuning KubeStellar components for security
@@ -34,4 +34,5 @@ As the security issue moves from triage, to identified fix, to release planning
3434
## Public Disclosure Timing
3535

3636
A public disclosure date is negotiated by the KubeStellar Security Response Committee and the bug submitter. We prefer to fully disclose the bug as soon as possible once a user mitigation is available. It is reasonable to delay disclosure when the bug or the fix is not yet fully understood, the solution is not well-tested, or for vendor coordination. The timeframe for disclosure is from immediate (especially if it's already publicly known) to a few weeks. For a vulnerability with a straightforward mitigation, we expect report date to disclosure date to be on the order of 7 days. The KubeStellar maintainers hold the final say when setting a disclosure date.
37+
3738
<!--security-end-->

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
// Environment variable management
2525
// Enables access to base URL and git commit hash across the application
2626
EnvironmentPlugin({
27-
VITE_BASE_URL: process.env.VITE_BASE_URL,
27+
VITE_BASE_URL: process.env.VITE_BASE_URL || 'http://localhost:4000',
2828
VITE_GIT_COMMIT_HASH: getGitCommitHash(),
2929
}),
3030
],

0 commit comments

Comments
 (0)