Docker Context ile TCP baglantisi duzeltildi
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 41s
Some checks failed
Harita Build ve Deploy / build-and-deploy (push) Failing after 41s
This commit is contained in:
@@ -1,41 +1,29 @@
|
|||||||
name: Harita Build ve Deploy
|
name: Harita Build ve Deploy
|
||||||
run-name: ${{ gitea.actor }} haritayi guncelliyor 🚀
|
run-name: ${{ gitea.actor }} Harita Yayınlanıyor 🟢
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Ortam değişkenini buraya sabitliyoruz
|
# DOCKER_HOST tanımı KALDIRILDI!
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
|
||||||
DOCKER_TLS_CERTDIR: ""
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Kodu Çek (Checkout)
|
- name: Kodu Çek (Checkout)
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# --- İŞTE ÇÖZÜM BURASI ---
|
# Sadece Docker'ı başlatmak kalıyor
|
||||||
# Buildx action'ı TCP adresini anlamazsa, ona elle öğretiyoruz.
|
|
||||||
- name: Docker Context Oluştur
|
|
||||||
run: |
|
|
||||||
docker context create my-context --docker "host=tcp://localhost:2375"
|
|
||||||
docker context use my-context
|
|
||||||
|
|
||||||
- name: Docker Buildx Kurulumu
|
- name: Docker Buildx Kurulumu
|
||||||
uses: docker/setup-buildx-action@v3 # Versiyonu v3 yaptık
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
|
||||||
endpoint: my-context # Oluşturduğumuz context'i kullan diyoruz
|
|
||||||
|
|
||||||
- name: Docker Login (Gitea Registry)
|
- name: Docker Login (Gitea Registry)
|
||||||
uses: docker/login-action@v3 # Versiyonu v3 yaptık
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.konstantiniyye.studio
|
registry: git.konstantiniyye.studio
|
||||||
username: gitea_admin
|
username: gitea_admin
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Build ve Push
|
- name: Docker Build ve Push
|
||||||
uses: docker/build-push-action@v5 # Versiyonu v5 yaptık
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user