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 713cef1 commit 561cd58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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.1 .
docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.2 .

docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.1
docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:v5.4.0-rc.2

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

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

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.1#" {} \;
run: find .deploy/deployment.yaml -type f -exec sed -i -e "s#__LATEST_RELEASE_TAG__#v5.4.0-rc.2#" {} \;

- name: "Replace secrets"
run: find .deploy/deployment.yaml -type f -exec sed -i ''s/__GOOGLE_ARTIFACT_URL__/${{ secrets.GOOGLE_ARTIFACT_URL }}/g'' {} \;
Expand Down
5 changes: 5 additions & 0 deletions src/routes/edvRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export = (hypersign, edvClient) => {
try {
const { user, document } = req.body;
const userData: IUserModel = user as IUserModel;
userData.nameSpace= user.nameSpace || 'default';

let response: IUserModel;
let status = 201;
Expand Down Expand Up @@ -103,6 +104,8 @@ export = (hypersign, edvClient) => {
const userEdvDoc = {
encryptedMessage: document.encryptedMessage,
userId: userData.userId,
nameSpace:userData.nameSpace

};

console.log("EncMessage " + userEdvDoc.encryptedMessage);
Expand All @@ -112,6 +115,8 @@ export = (hypersign, edvClient) => {
);
const edvDocument = edvClient.prepareEdvDocument(userEdvDoc, [
{ index: "content.userId", unique: true },
{ index: "content.nameSpace" },

]);
console.log(
"edvRoutest:: sync(): Before updating the db with docid " + userDocId
Expand Down

0 comments on commit 561cd58

Please sign in to comment.