Skip to content

Commit

Permalink
dockerfile prisma command change and qa pipeline trigger flow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheetal-ayanworks committed Sep 11, 2024
1 parent d648c61 commit 5ab512b
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qa-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build and deploy AGENT app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-agent-service*'

env:
ECR_IMAGE_TAG: "AGENT_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-api-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy API-GATEWAY app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-api-gateway*'

env:
ECR_IMAGE_TAG: "API-GATEWAY_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-connection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy CONNECTION app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-connection*'

env:
ECR_IMAGE_TAG: "CONNECTION_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy ECOSYSTEM app to QA ECS
on:
push:
tags:
- 'qa'
- 'qa-ecosystem*'

env:
ECR_IMAGE_TAG: "ECOSYSTEM_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-issuance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build and deploy ISSUANCE app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-issuance*'

env:
ECR_IMAGE_TAG: "ISSUANCE_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-ledger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy LEDGER app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-ledger*'

env:
ECR_IMAGE_TAG: "LEDGER_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy NOTIFICATION app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-notification*'

env:
ECR_IMAGE_TAG: "NOTIFICATION_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-organization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy ORGANIZATION app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-organization*'

env:
ECR_IMAGE_TAG: "ORGANIZATION_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy USER app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-user*'

env:
ECR_IMAGE_TAG: "USER_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-utility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy UTILITY app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-utility*'

env:
ECR_IMAGE_TAG: "UTILITY_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy VERIFICATION app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-verification*'

env:
ECR_IMAGE_TAG: "VERIFICATION_V_${{ github.run_number }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy WEBHOOK app to QA ECS
on:
push:
tags:
- 'qa*'
- 'qa-webhook*'

env:
ECR_IMAGE_TAG: "WEBHOOK_V_${{ github.run_number }}"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build agent-service
Expand Down Expand Up @@ -49,4 +49,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-service/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/agent-service/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the api-gateway service
RUN pnpm run build api-gateway
Expand All @@ -34,4 +34,4 @@ COPY --from=build /app/node_modules ./node_modules
# COPY --from=build /app/uploadedFiles ./uploadedFiles

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/api-gateway/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/api-gateway/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.cloud-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN pnpm install
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build cloud-wallet
Expand All @@ -40,4 +40,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/cloud-wallet/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/cloud-wallet/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.connection
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the connection service
RUN pnpm run build connection
Expand All @@ -37,4 +37,4 @@ COPY --from=build /app/node_modules ./node_modules
#RUN npm i --only=production

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/connection/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/connection/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.ecosystem
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the issuance service
RUN pnpm run build ecosystem
Expand All @@ -35,4 +35,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/ecosystem/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/ecosystem/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.geolocation
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the connection service
RUN pnpm run build geo-location
Expand All @@ -37,4 +37,4 @@ COPY --from=build /app/node_modules ./node_modules
#RUN npm i --only=production

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/geo-location/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/geo-location/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the issuance service
RUN pnpm run build issuance
Expand All @@ -36,4 +36,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/issuance/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/issuance/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.ledger
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the ledger service
RUN npm run build ledger
Expand All @@ -35,4 +35,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/ledger/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/ledger/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.notification
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the notification service
RUN npm run build notification
Expand All @@ -35,4 +35,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/notification/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/notification/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.organization
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate


# Build the organization service
Expand All @@ -35,4 +35,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/organization/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/organization/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN pnpm install
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build user
Expand Down Expand Up @@ -63,4 +63,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/user/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/user/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.utility
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN pnpm install
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build utility
Expand All @@ -40,4 +40,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/utility/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/utility/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN npm run build verification
Expand All @@ -33,4 +33,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/verification/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/verification/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.webhook
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pnpm i
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the webhook service
RUN pnpm run build webhook
Expand All @@ -36,4 +36,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/webhook/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma generate npx prisma migrate deploy && cd ../.. && node dist/apps/webhook/main.js"]

0 comments on commit 5ab512b

Please sign in to comment.