Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./krishnasree@mulearn/Task-3
23 changes: 23 additions & 0 deletions FinalProject/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-web-app
spec:
replicas: 3
selector:
matchLabels:
app: my-web-app
template:
metadata:
labels:
app: my-web-app
spec:
containers:
- name: my-container
image: my-web-app:latest
imagePullPolicy: Never
ports:
- containerPort: 80
env:
- name: STUDENT_NAME
value: "Krishnasree"
3 changes: 3 additions & 0 deletions FinalProject/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:alpine

COPY index.html /usr/share/nginx/html/index.html
10 changes: 10 additions & 0 deletions FinalProject/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>My App</title>
</head>
<body>
<h1>Hello from Kubernetes 👋</h1>
<p>Student: Krishnasree</p>
</body>
</html>
20 changes: 20 additions & 0 deletions krishnasree@mulearn/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./krishnasree@mulearn/Task-3
20 changes: 20 additions & 0 deletions krishnasree@mulearn/.github/workflows/deploy1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./krishnasree@mulearn/Task-3
2 changes: 2 additions & 0 deletions krishnasree@mulearn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#selfintroduction
Hello, I'm Krishnasree. I'm a Computer Science and Engineering student at Marian Engineering College, Kazhakuttom.
4 changes: 4 additions & 0 deletions krishnasree@mulearn/Task-2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.9
WORKDIR /app
COPY . .
CMD ["python", "script.py"]
7 changes: 7 additions & 0 deletions krishnasree@mulearn/Task-2/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import time

print("🚀 Container Started")

while True:
print("Hello World")
time.sleep(5)
30 changes: 30 additions & 0 deletions krishnasree@mulearn/Task-3/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./krishnasree@mulearn/Task-3

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
10 changes: 10 additions & 0 deletions krishnasree@mulearn/Task-3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> My CI/CD Site</title>
</head>
<body>
<h1>Hello 👋</h1>
<p>This site is deployed using GitHub Actions!</p>
</body>
</html>
13 changes: 13 additions & 0 deletions krishnasree@mulearn/Task-3/submission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CI/CD Assignment Submission

Name: Krishnasree
muid: krishnasree@mulearn

## 🔗 Repository Link
https://github.com/Krishnasree26/Shipyard-Foundations

## 🌐 Live Website
https://Krishnasree26.github.io/Shipyard-Foundations/

## 🌐 Git Actions Link
https://github.com/Krishnasree26/Shipyard-Foundations/actions
19 changes: 19 additions & 0 deletions krishnasree@mulearn/Task-4/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
13 changes: 13 additions & 0 deletions krishnasree@mulearn/Task-4/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
type: NodePort
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30007
Binary file added krishnasree@mulearn/Task-4/task4a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added krishnasree@mulearn/Task-4/task4b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added krishnasree@mulearn/Task-4/task4c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.