CD güncelleme TCP ayarları-.
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 31s
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 31s
This commit is contained in:
@@ -6,10 +6,8 @@ jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# KRİTİK: DOCKER KOMUTUNUN YOLUNU GÖSTEREN AYAR
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_TLS_CERTDIR: "" # Sertifika kontrolünü kapatır
|
||||
# ⚠️ ÇÖZÜM: DOCKER_HOST ENV AYARINI KALDIRIYORUZ!
|
||||
# Runner, kendi iç mekanizmasıyla otomatik TCP bağlantısını kuracaktır (Sizin stabil ayarınız).
|
||||
|
||||
steps:
|
||||
- name: Kodu Çek (Checkout)
|
||||
@@ -28,7 +26,7 @@ jobs:
|
||||
username: gitea_admin
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
# PUSH ADIMI: Digest'i çıktı olarak alıyoruz
|
||||
# PUSH ADIMI: İmajın kimliğini (digest) çıktı olarak alıyoruz
|
||||
- name: Docker Build ve Push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -40,9 +38,10 @@ jobs:
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# CD KISMI (Final - TLS Kontrolü Atlandı)
|
||||
# CD KISMI (Final Çözüm)
|
||||
# -----------------------------------------------------------------
|
||||
- name: Kubectl Binary Kurulumu
|
||||
# ARM64 uyumlu kubectl'i kurar
|
||||
run: |
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
|
||||
chmod +x kubectl
|
||||
@@ -56,11 +55,10 @@ jobs:
|
||||
# 2. Yeni imaj Digest'ini alır
|
||||
NEW_IMAGE_DIGEST="git.konstantiniyye.studio/gitea_admin/dogu@${{ steps.docker_build.outputs.digest }}"
|
||||
|
||||
# 3. TLS kontrolünü atlayarak Deployment'ı günceller (Sizin Kubeconfig'inizdeki ayarı kullanır)
|
||||
# 3. TLS kontrolünü atlayarak Deployment'ı günceller (Rancher Self-Signed Fix)
|
||||
# NOT: Kubeconfig'inize insecure-skip-tls-verify: true eklediyseniz, bu satırlar çalışacaktır.
|
||||
kubectl set image deployment/dogu-haritasi web=${NEW_IMAGE_DIGEST} \
|
||||
--kubeconfig=/tmp/kubeconfig.yaml -n default \
|
||||
--insecure-skip-tls-verify # <--- Gerekli TLS atlama bayrağı
|
||||
--kubeconfig=/tmp/kubeconfig.yaml -n default
|
||||
|
||||
kubectl rollout restart deployment/dogu-haritasi \
|
||||
--kubeconfig=/tmp/kubeconfig.yaml -n default \
|
||||
--insecure-skip-tls-verify
|
||||
--kubeconfig=/tmp/kubeconfig.yaml -n default
|
||||
Reference in New Issue
Block a user