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:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest # Senin kurduğun Act Runner burada devreye girecek
|
runs-on: ubuntu-latest
|
||||||
# --- BU KISMI EKLE (BAŞLANGIÇ) ---
|
# BURADAKİ FAZLALIKLARI SİLDİK, ARTIK BAĞLANTI KOPMAYACAK
|
||||||
# İşç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İŞ) ---
|
|
||||||
steps:
|
steps:
|
||||||
- name: Kodu Çek (Checkout)
|
- name: Kodu Çek (Checkout)
|
||||||
uses: actions/checkout@v3
|
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)
|
- name: Docker Login (Gitea Registry)
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: git.konstantiniyye.studio
|
registry: git.konstantiniyye.studio
|
||||||
# Garanti olsun diye kullanıcı adını da elle yazalım:
|
|
||||||
username: gitea_admin
|
username: gitea_admin
|
||||||
# Yeni oluşturduğumuz secret'ı kullanıyoruz:
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Build ve Push
|
- name: Docker Build ve Push
|
||||||
@@ -31,7 +29,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
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)
|
- name: Kubernetes'e Deploy Et (Rancher)
|
||||||
uses: actions-hub/kubectl@master
|
uses: actions-hub/kubectl@master
|
||||||
|
|||||||
Reference in New Issue
Block a user