From 9cf634fc8ac0e045efbdafe3ce4b353b15b6003d Mon Sep 17 00:00:00 2001 From: Pratap2018 Date: Thu, 28 Dec 2023 19:13:30 +0530 Subject: [PATCH] update --- .github/workflows/pipeline.yaml | 4 +++- Dockerfile | 3 ++- Txn.Dockerfile | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 10464ca..8f1fd10 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -30,6 +30,8 @@ jobs: - name: "Docker Auth" run: gcloud auth configure-docker ${{secrets.GOOGLE_ARTIFACT_URL}} + - name: "Get Hypersign json" + run: echo ${{ secrets.HYPERSIGN_JSON}} >> hypersign.json - name: "Docker Build and Push" env: GOOGLE_PROJECT_ID: ${{secrets.GOOGLE_PROJECT_ID}} @@ -98,7 +100,7 @@ jobs: - name: "Replace Secrets" run: find .deploy/deployment.yaml -type f -exec sed -i "s#__MAX_BATCH_SIZE__#${{ secrets.MAX_BATCH_SIZE }}#" {} \; - name: "Replace Secrets" - run: find .deploy/deployment.yaml -type f -exec sed -i "s#__DB_URL__#${{ secrets.DB_URL }}#" {} \; + run: find .deploy/deployment.yaml -type f -exec sed -i -e "s#__DB_URL__#${{ secrets.DB_URL }}#" {} \; - name: "Replace Secrets" run: find .deploy/deployment.yaml -type f -exec sed -i "s#__MINIMUM_DELAY__#${{ secrets.MINIMUM_DELAY }}#" {} \; - name: "Replace Secrets" diff --git a/Dockerfile b/Dockerfile index 8f50b65..7959b4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,8 @@ COPY ./tsconfig.json . RUN npm install COPY . . -CMD [ "npm","run","build", "&&" , "npm", "run","start"] +RUN npm run build +CMD [ "npm", "run","start"] diff --git a/Txn.Dockerfile b/Txn.Dockerfile index e845b4c..53284c9 100644 --- a/Txn.Dockerfile +++ b/Txn.Dockerfile @@ -7,7 +7,9 @@ COPY ./tsconfig.json . RUN npm install COPY . . -CMD [ "npm","run","build", "&&", "npm", "run","service:start"] +RUN npm run build + +CMD [ "npm", "run","service:start"]