YAML temizlendi ve Buildx eklendi
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 22s
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 22s
This commit is contained in:
@@ -4,26 +4,24 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest # Senin kurduğun Act Runner burada devreye girecek
|
||||
# --- BU KISMI EKLE (BAŞLANGIÇ) ---
|
||||
# İşçiye Docker'ın nerede olduğunu söylüyoruz
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
# --- BU KISMI EKLE (BİTİŞ) ---
|
||||
runs-on: ubuntu-latest
|
||||
# BURADAKİ FAZLALIKLARI SİLDİK, ARTIK BAĞLANTI KOPMAYACAK
|
||||
|
||||
steps:
|
||||
- name: Kodu Çek (Checkout)
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# --- YENİ EKLEME: Docker Build Motorunu Hazırla ---
|
||||
- name: Docker Buildx Kurulumu
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
driver: docker # Dind kullandığımız için 'docker' sürücüsünü seçiyoruz
|
||||
|
||||
- name: Docker Login (Gitea Registry)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: git.konstantiniyye.studio
|
||||
# Garanti olsun diye kullanıcı adını da elle yazalım:
|
||||
username: gitea_admin
|
||||
# Yeni oluşturduğumuz secret'ı kullanıyoruz:
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Docker Build ve Push
|
||||
@@ -31,7 +29,10 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: git.konstantiniyye.studio/${{ gitea.actor }}/dogu-haritasi:latest
|
||||
tags: git.konstantiniyye.studio/gitea_admin/dogu:latest
|
||||
# Cache kullanarak hızı artırıyoruz
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Kubernetes'e Deploy Et (Rancher)
|
||||
uses: actions-hub/kubectl@master
|
||||
|
||||
Reference in New Issue
Block a user