File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
from config import cnf
3
3
from api .project import router as project_router
4
4
from logger import log
5
-
5
+ from fastapi . middleware . cors import CORSMiddleware
6
6
7
7
app = FastAPI ()
8
+ app .add_middleware (
9
+ CORSMiddleware ,
10
+ allow_origins = ["*" ],
11
+ allow_credentials = True ,
12
+ allow_methods = ["*" ],
13
+ allow_headers = ["*" ],
14
+ )
8
15
app .include_router (project_router )
9
16
10
17
@app .get ("/" )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pipeline {
51
51
dir(" dev" ) {
52
52
sh """
53
53
tmp_image_name="${ REGISTRY} /${ docker_image_name} " yq -i '.images[0].newName = env(tmp_image_name)' kustomization.yaml
54
- tmp_image_tag="${ tag} " yq -i '.images[0].newTage = env (tmp_image_tag)' kustomization.yaml
54
+ tmp_image_tag="${ tag} " yq -i '.images[0].newTag = strenv (tmp_image_tag)' kustomization.yaml
55
55
"""
56
56
57
57
withCredentials([sshUserPrivateKey(credentialsId : " JCP-FRONTEND-CORE-SSHKEY" , keyFileVariable : " SSH_KEY" )]) {
You can’t perform that action at this time.
0 commit comments