diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..0a366bf3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/sinanm@mulearn/task-1/README.md b/sinanm@mulearn/task-1/README.md new file mode 100644 index 00000000..8fca02b3 --- /dev/null +++ b/sinanm@mulearn/task-1/README.md @@ -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 + diff --git a/sinanm@mulearn/task-2/.gitattributes b/sinanm@mulearn/task-2/.gitattributes new file mode 100644 index 00000000..dfe07704 --- /dev/null +++ b/sinanm@mulearn/task-2/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/sinanm@mulearn/task-2/Dockerfile b/sinanm@mulearn/task-2/Dockerfile new file mode 100644 index 00000000..95ba808a --- /dev/null +++ b/sinanm@mulearn/task-2/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY . /app + +CMD ["python", "script.py"] \ No newline at end of file diff --git a/sinanm@mulearn/task-2/script.py b/sinanm@mulearn/task-2/script.py new file mode 100644 index 00000000..8395f612 --- /dev/null +++ b/sinanm@mulearn/task-2/script.py @@ -0,0 +1,7 @@ +import time + +print("🚀 Container Started") + +while True: + print("Hello World") + time.sleep(5) \ No newline at end of file diff --git a/sinanm@mulearn/task-3/index.html b/sinanm@mulearn/task-3/index.html new file mode 100644 index 00000000..89837355 --- /dev/null +++ b/sinanm@mulearn/task-3/index.html @@ -0,0 +1,10 @@ + + + + CI/CD Demo + + +

🚀 My CI/CD Pipeline Works!

+

Hosted using GitHub Actions + GitHub Pages.

+ + \ No newline at end of file diff --git a/sinanm@mulearn/task-3/submission.md b/sinanm@mulearn/task-3/submission.md new file mode 100644 index 00000000..924af359 --- /dev/null +++ b/sinanm@mulearn/task-3/submission.md @@ -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 \ No newline at end of file diff --git a/sinanm@mulearn/task-4/deployment.yaml b/sinanm@mulearn/task-4/deployment.yaml new file mode 100644 index 00000000..439b4a81 --- /dev/null +++ b/sinanm@mulearn/task-4/deployment.yaml @@ -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 \ No newline at end of file diff --git a/sinanm@mulearn/task-4/service.yaml b/sinanm@mulearn/task-4/service.yaml new file mode 100644 index 00000000..ca668397 --- /dev/null +++ b/sinanm@mulearn/task-4/service.yaml @@ -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 \ No newline at end of file