From e12296c1b6b30dbe6e4e84eac9422a67843feb3b Mon Sep 17 00:00:00 2001 From: Pratap2018 Date: Thu, 28 Dec 2023 19:31:47 +0530 Subject: [PATCH] update --- .github/workflows/pipeline.yaml | 8 ++++---- Dockerfile | 5 +---- Txn.Dockerfile | 6 +----- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 8f1fd10..3d3cc03 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -39,13 +39,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:latest . + docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:1 . - docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:latest + docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server:1 - docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:latest . -f Txn.Dockerfile + docker build -t $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:1 . -f Txn.Dockerfile - docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:latest + docker push $GOOGLE_ARTIFACT_URL/$GOOGLE_PROJECT_ID/$GOOGLE_ARTIFACT_REPO/auth-server-txn:1 Deploy-Pipeline: needs: [Build-Pipeline] diff --git a/Dockerfile b/Dockerfile index 283f1d1..1704336 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ -FROM node:16.20.1 +FROM node:16 WORKDIR /usr/src/app COPY ./package.json . COPY ./tsconfig.json . -COPY ./hypersign.json . - RUN npm install - COPY . . RUN npm run build CMD [ "npm", "run","start"] diff --git a/Txn.Dockerfile b/Txn.Dockerfile index e1f5f90..c9f8400 100644 --- a/Txn.Dockerfile +++ b/Txn.Dockerfile @@ -1,14 +1,10 @@ -FROM node:16.20.1 +FROM node:16 WORKDIR /usr/src/app COPY ./package.json . COPY ./tsconfig.json . -COPY ./hypersign.json . - RUN npm install - COPY . . RUN npm run build - CMD [ "npm", "run","service:start"]