From e7c9cb3249f2c99a91bd36070825eb4e968c82cd Mon Sep 17 00:00:00 2001 From: gitmuhammedalbayrak Date: Wed, 19 Nov 2025 00:37:40 +0300 Subject: [PATCH] Harita projesi baslatildi --- .gitea/workflows/deploy.yaml | 38 +++++ Dockerfile | 8 + deployment.yaml | 0 index.html | 315 +++++++++++++++++++++++++++++++++++ 4 files changed, 361 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 Dockerfile create mode 100644 deployment.yaml create mode 100644 index.html diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..bb0823d --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,38 @@ +name: Harita Build ve Deploy +run-name: ${{ gitea.actor }} haritayi guncelliyor 🚀 +on: [push] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest # Senin kurduğun Act Runner burada devreye girecek + steps: + - name: Kodu Çek (Checkout) + uses: actions/checkout@v3 + + - name: Docker Login (Gitea Registry) + uses: docker/login-action@v2 + with: + registry: git.konstantiniyye.studio + username: ${{ gitea.actor }} + password: ${{ secrets.GITHUB_TOKEN }} # Gitea bunu otomatik sağlar + + - name: Docker Build ve Push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: git.konstantiniyye.studio/${{ gitea.actor }}/dogu-haritasi:latest + + - name: Kubernetes'e Deploy Et (Rancher) + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f deployment.yaml + + - name: Deployment'ı Yenile (Restart Pod) + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: rollout restart deployment/dogu-haritasi \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..04840d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Hafif bir web sunucusu olan Nginx kullanıyoruz +FROM nginx:alpine + +# Senin HTML dosyanı sunucunun içine kopyalıyoruz +COPY index.html /usr/share/nginx/html/index.html + +# 80 portunu dışarı açıyoruz +EXPOSE 80 \ No newline at end of file diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..3b88d36 --- /dev/null +++ b/index.html @@ -0,0 +1,315 @@ + + + + + + Doğu Yönelimli Dünya Haritası + + + + + +
+

Dünya Haritası - Doğu Yönelimli

+

Doğu Üstte | Eğitim ve Profesyonel Kullanım

+ +
+ + + + \ No newline at end of file