diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index caf7290..630fa37 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,20 +1,24 @@ -name: Harita Build ve Deploy -run-name: ${{ gitea.actor }} Harita Yayınlanıyor 🟢 +name: Harita Build ve Push +run-name: ${{ gitea.actor }} Harita Build ve Push 🟢 on: [push] jobs: build-and-deploy: runs-on: ubuntu-latest - # DOCKER_HOST tanımı KALDIRILDI! + env: + DOCKER_HOST: unix:///var/run/dind-socket-dir/docker.sock # Socket Fix + DOCKER_TLS_CERTDIR: "" + steps: - name: Kodu Çek (Checkout) uses: actions/checkout@v3 - # Sadece Docker'ı başlatmak kalıyor + # Docker motorunu (Buildx) hazırlar - name: Docker Buildx Kurulumu uses: docker/setup-buildx-action@v3 + # Registry'ye giriş yapar (Token Fix) - name: Docker Login (Gitea Registry) uses: docker/login-action@v3 with: @@ -22,6 +26,7 @@ jobs: username: gitea_admin password: ${{ secrets.REGISTRY_TOKEN }} + # İmajı Derle ve Gitea Registry'ye Yükle (PUSH) - name: Docker Build ve Push uses: docker/build-push-action@v5 with: @@ -31,16 +36,6 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - - 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 + # ----------------------------------------------------------------- + # CD ADIMLARI YARINA ERTELENDİ + # ----------------------------------------------------------------- \ No newline at end of file