Files
dogu/.gitea/workflows/deploy.yaml
2025-11-19 00:37:40 +03:00

38 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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