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
|
||||
run-name: ${{ gitea.actor }} haritayi guncelliyor 🚀
|
||||
run-name: ${{ gitea.actor }} Harita Yayınlanıyor 🟢
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Ortam değişkenini buraya sabitliyoruz
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
# DOCKER_HOST tanımı KALDIRILDI!
|
||||
steps:
|
||||
- name: Kodu Çek (Checkout)
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# --- İŞTE ÇÖZÜM BURASI ---
|
||||
# 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
|
||||
|
||||
# Sadece Docker'ı başlatmak kalıyor
|
||||
- name: Docker Buildx Kurulumu
|
||||
uses: docker/setup-buildx-action@v3 # Versiyonu v3 yaptık
|
||||
with:
|
||||
endpoint: my-context # Oluşturduğumuz context'i kullan diyoruz
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Docker Login (Gitea Registry)
|
||||
uses: docker/login-action@v3 # Versiyonu v3 yaptık
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.konstantiniyye.studio
|
||||
username: gitea_admin
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Docker Build ve Push
|
||||
uses: docker/build-push-action@v5 # Versiyonu v5 yaptık
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user