Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
58b6224
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
794b548
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
7aa6f4a
Update deployment Image to version 39
anugh Aug 22, 2024
8ab6033
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
a0a0ae7
Update deployment Image to version 45
anugh Aug 22, 2024
0278e55
Update service.yaml
Anudeepkumar7 Aug 22, 2024
aba5a02
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
9c97416
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
a3907eb
Update deployment Image to version 2
anugh Aug 22, 2024
7e7d828
Update ingress.yaml
Anudeepkumar7 Aug 22, 2024
c92b9c2
Update ingress.yaml
Anudeepkumar7 Aug 22, 2024
1b90351
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
a4ef6bc
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
fdf1e5d
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
793bf9b
Update deployment.yaml
Anudeepkumar7 Aug 22, 2024
3e8bf95
Update service.yaml
Anudeepkumar7 Aug 22, 2024
4990245
Update ingress.yaml
Anudeepkumar7 Aug 22, 2024
d73d61a
Update ingress.yaml
Anudeepkumar7 Aug 22, 2024
e541bbc
Update ingress.yaml
Anudeepkumar7 Aug 22, 2024
1ba816a
Create Db
Anudeepkumar7 Aug 27, 2024
e9529ca
Update Db
Anudeepkumar7 Aug 27, 2024
888b767
Add first GitHub Actions workflow
Anudeepkumar7 Apr 10, 2026
e4ae0ab
Update main.yml
Anudeepkumar7 Apr 10, 2026
c18bf93
Update main.yml
Anudeepkumar7 Apr 10, 2026
1a05961
Update main.yml
Anudeepkumar7 Apr 10, 2026
6b033d0
Update main.yml
Anudeepkumar7 Apr 10, 2026
f58fa21
multiple-shell-commands-run
Anudeepkumar7 Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: first_workflow
#on: workflow_dispatch
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
setup:
runs-on: ubuntu-slim
steps:
- name: clone-repo
run: |
echo "hello clone repos step"
echo "good afterroon running on single step of both echo commands"

second-job:
runs-on: ubuntu-slim
steps:
- name: second-stage
run: echo "hello second-stage"
17 changes: 17 additions & 0 deletions Db
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const mongoose = require("mongoose");

module.exports = async () => {
try {
// Connection parameters
const connectionParams = {
useNewUrlParser: true,
useUnifiedTopology: true,
};

// Connect to MongoDB using the connection string from environment variables
await mongoose.connect(process.env.MONGO_CONN_STR, connectionParams);
console.log("Connected to database.");
} catch (error) {
console.error("Could not connect to database.", error);
}
};
22 changes: 1 addition & 21 deletions Kubernetes-Manifests-file/Backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: ecr-registry-secret
containers:
- name: api
image: 407622020962.dkr.ecr.us-east-1.amazonaws.com/backend:1
image: 025066275420.dkr.ecr.ap-south-1.amazonaws.com/backend:4
imagePullPolicy: Always
env:
- name: MONGO_CONN_STR
Expand All @@ -42,23 +42,3 @@ spec:
key: password
ports:
- containerPort: 3500
livenessProbe:
httpGet:
path: /healthz
port: 3500
initialDelaySeconds: 2
periodSeconds: 5
readinessProbe:
httpGet:
path: /ready
port: 3500
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
startupProbe:
httpGet:
path: /started
port: 3500
initialDelaySeconds: 0
periodSeconds: 10
failureThreshold: 30
2 changes: 1 addition & 1 deletion Kubernetes-Manifests-file/Frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: ecr-registry-secret
containers:
- name: frontend
image: 407622020962.dkr.ecr.us-east-1.amazonaws.com/frontend:3
image: 025066275420.dkr.ecr.ap-south-1.amazonaws.com/frontend:46
imagePullPolicy: Always
env:
- name: REACT_APP_BACKEND_URL
Expand Down
2 changes: 1 addition & 1 deletion Kubernetes-Manifests-file/Frontend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
protocol: TCP
type: ClusterIP
selector:
role: frontend
role: frontend
3 changes: 1 addition & 2 deletions Kubernetes-Manifests-file/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ metadata:
spec:
ingressClassName: alb
rules:
- host: amanpathakdevops.study
http:
- http:
paths:
- path: /api
pathType: Prefix
Expand Down