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
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Website to GitHub Pages

on:
push:
branches:
- main

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

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

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

- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./sinanm@mulearn/task-3

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
6 changes: 6 additions & 0 deletions sinanm@mulearn/task-1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\# Self Introduction



Hello! My name is SINAN M and I am excited to be part of the mulearn Shipyard Foundations journey. I study at M.DASAN INSTITUTE OF TECHNOLOGY in B.Tech CSE(CYBER SECURITY).I like to learn and explore new things

2 changes: 2 additions & 0 deletions sinanm@mulearn/task-2/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
7 changes: 7 additions & 0 deletions sinanm@mulearn/task-2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.10-slim

WORKDIR /app

COPY . /app

CMD ["python", "script.py"]
7 changes: 7 additions & 0 deletions sinanm@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)
10 changes: 10 additions & 0 deletions sinanm@mulearn/task-3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>CI/CD Demo</title>
</head>
<body>
<h1>🚀 My CI/CD Pipeline Works!</h1>
<p>Hosted using GitHub Actions + GitHub Pages.</p>
</body>
</html>
13 changes: 13 additions & 0 deletions sinanm@mulearn/task-3/submission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CI/CD Assignment Submission

Name: Sinan M
muid: sinanm@mulearn

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

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

## 🌐 Git Actions Link
https://github.com/sinan404/Shipyard-Foundations/actions
19 changes: 19 additions & 0 deletions sinanm@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:latest
ports:
- containerPort: 80
13 changes: 13 additions & 0 deletions sinanm@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