Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Mar 6, 2024
1 parent 05803ea commit a51dbb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
GOOGLE_ARTIFACT_REPO: ${{secrets.GOOGLE_ARTIFACT_REPO}}
HYPERSIGN_JSON: ${{secrets.HYPERSIGN_JSON}}
run:
docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.3 .
docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.4 .

docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.3
docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.4

docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:v5.4.0-rc.3 . -f Txn.Dockerfile
docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:v5.4.0-rc.4 . -f Txn.Dockerfile

docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:v5.4.0-rc.3
docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:v5.4.0-rc.4

Deploy-Pipeline:
needs: [Build-Pipeline]
Expand All @@ -76,7 +76,7 @@ jobs:
- name: "Configure kubectl"
run: gcloud container clusters get-credentials hypermine-gke --region=asia-south1
- name: Replace tags
run: find .deploy/deployment.yaml -type f -exec sed -i -e "s#__LATEST_RELEASE_TAG__#v5.4.0-rc.3#" {} \;
run: find .deploy/deployment.yaml -type f -exec sed -i -e "s#__LATEST_RELEASE_TAG__#v5.4.0-rc.4#" {} \;

- name: "Replace secrets"
run: find .deploy/deployment.yaml -type f -exec sed -i ''s/__GOOGLE_ARTIFACT_URL__/${{ secrets.GOOGLE_ARTIFACT_URL }}/g'' {} \;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export = (hypersign: IHypersignAuth, edvClient) => {
userId: user.email,
sequence: 0,
docId: "",
nameSpace: user.nameSpace || "default",
nameSpace: user.nameSpace?user.nameSpace: "default",

} as IUserModel;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/edvRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export = (hypersign, edvClient) => {
try {
const { user, document } = req.body;
const userData: IUserModel = user as IUserModel;
userData.nameSpace = user.nameSpace || "default";
userData.nameSpace = user.nameSpace ? user.nameSpace : "default";

let response: IUserModel;
let status = 201;
Expand Down

0 comments on commit a51dbb7

Please sign in to comment.