Yeni sistem. Docker etabı.
Some checks failed
Harita Build ve Push / build-and-deploy (push) Failing after 7s
Some checks failed
Harita Build ve Push / build-and-deploy (push) Failing after 7s
This commit is contained in:
@@ -1,20 +1,24 @@
|
|||||||
name: Harita Build ve Deploy
|
name: Harita Build ve Push
|
||||||
run-name: ${{ gitea.actor }} Harita Yayınlanıyor 🟢
|
run-name: ${{ gitea.actor }} Harita Build ve Push 🟢
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Kodu Çek (Checkout)
|
- name: Kodu Çek (Checkout)
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Sadece Docker'ı başlatmak kalıyor
|
# Docker motorunu (Buildx) hazırlar
|
||||||
- name: Docker Buildx Kurulumu
|
- name: Docker Buildx Kurulumu
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
# Registry'ye giriş yapar (Token Fix)
|
||||||
- name: Docker Login (Gitea Registry)
|
- name: Docker Login (Gitea Registry)
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -22,6 +26,7 @@ jobs:
|
|||||||
username: gitea_admin
|
username: gitea_admin
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
# İmajı Derle ve Gitea Registry'ye Yükle (PUSH)
|
||||||
- name: Docker Build ve Push
|
- name: Docker Build ve Push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -31,16 +36,6 @@ jobs:
|
|||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Kubernetes'e Deploy Et (Rancher)
|
# -----------------------------------------------------------------
|
||||||
uses: actions-hub/kubectl@master
|
# CD ADIMLARI YARINA ERTELENDİ
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user