Skip to content

Commit

Permalink
fix:QEMU addded in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rithick574 committed Jul 9, 2024
1 parent 9c30fde commit d20358e
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/chat-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -25,6 +28,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./chat-service/
platforms: linux/amd64,linux/arm64
push: true
tags: rithickramanthali/learnwise-chat:latest

4 changes: 4 additions & 0 deletions .github/workflows/course-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -25,5 +28,6 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./course-service/
platforms: linux/amd64,linux/arm64
push: true
tags: rithickramanthali/learnwise-course:latest
4 changes: 4 additions & 0 deletions .github/workflows/notification-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -25,5 +28,6 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./notification-service/
platforms: linux/amd64,linux/arm64
push: true
tags: rithickramanthali/learnwise-notification:latest
16 changes: 10 additions & 6 deletions .github/workflows/payment-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,32 @@ name: Build and publish Payment service to Docker Hub

on:
push:
branches: ['main']
branches: ["main"]
paths:
- "payment-service/**"
workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3


- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./payment-service/
context: ./payment-service/
platforms: linux/amd64,linux/arm64
push: true
tags: rithickramanthali/learnwise-payment:latest
tags: rithickramanthali/learnwise-payment:latest
16 changes: 10 additions & 6 deletions .github/workflows/user-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,32 @@ name: Build and publish User service to Docker Hub

on:
push:
branches: ['main']
branches: ["main"]
paths:
- "user-service/**"
workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3


- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./user-service/
context: ./user-service/
platforms: linux/amd64,linux/arm64
push: true
tags: rithickramanthali/learnwise-user:latest
tags: rithickramanthali/learnwise-user:latest
2 changes: 1 addition & 1 deletion chat-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { runConsumer, stopConsumer } from "./_boot/consumer";
try {
server;
await Promise.all([database(), runConsumer()])
.then(() => console.log("kafka consumer is runnnig"))
.then(() => console.log("kafka consumer is runnnig..."))
.catch((error) => {
console.error(`Error while initializing Kafka consumer: ${error}`);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion course-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {runConsumer,stopConsumer} from "./_boot/consumer"
try {
server;
await Promise.all([database(),runConsumer()])
.then(() => console.log("kafka consumer is runnnig"))
.then(() => console.log("kafka consumer is runnnig..."))
.catch((error) => {
console.error(`Error while initializing Kafka consumer: ${error}`);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion notification-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {runConsumer,stopConsumer} from "./__boot/consumer"
server;

await runConsumer()
.then(() => console.log("kafka consumer is runnnig"))
.then(() => console.log("kafka consumer is runnnig..."))
.catch((error:any) => {
console.error(`Error while initializing Kafka consumer: ${error}`);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion payment-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import database from "./_boot/config"
try {
server;
await Promise.all([database()])
.then(() => console.log("kafka consumer is runnnig"))
.then(() => console.log("kafka consumer is runnnig..."))
.catch((error) => {
console.error(`Error while initializing Kafka consumer: ${error}`);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion user-service/src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class UsersController {
message: "Applied successfully"
});
} catch (error:any) {
console.error("Error when creating instructor application:", error);
console.error("Error while creating instructor application:", error);
const message = error.response || 'Failed to process application due to internal error';
res.status( error.status || HttpStatus.INTERNAL_SERVER_ERROR).json({
success: false,
Expand Down

0 comments on commit d20358e

Please sign in to comment.