41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: Harita Build ve Push
|
||
run-name: ${{ gitea.actor }} Harita Build ve Push 🟢
|
||
on: [push]
|
||
|
||
jobs:
|
||
build-and-deploy:
|
||
runs-on: ubuntu-latest
|
||
|
||
env:
|
||
DOCKER_HOST: unix:///var/run/dind-socket-dir/docker.sock # Socket Fix
|
||
DOCKER_TLS_CERTDIR: ""
|
||
|
||
steps:
|
||
- name: Kodu Çek (Checkout)
|
||
uses: actions/checkout@v3
|
||
|
||
# Docker motorunu (Buildx) hazırlar
|
||
- name: Docker Buildx Kurulumu
|
||
uses: docker/setup-buildx-action@v3
|
||
|
||
# Registry'ye giriş yapar (Token Fix)
|
||
- name: Docker Login (Gitea Registry)
|
||
uses: docker/login-action@v3
|
||
with:
|
||
registry: git.konstantiniyye.studio
|
||
username: gitea_admin
|
||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||
|
||
# İmajı Derle ve Gitea Registry'ye Yükle (PUSH)
|
||
- name: Docker Build ve Push
|
||
uses: docker/build-push-action@v5
|
||
with:
|
||
context: .
|
||
push: true
|
||
tags: git.konstantiniyye.studio/gitea_admin/dogu:latest
|
||
cache-from: type=gha
|
||
cache-to: type=gha,mode=max
|
||
|
||
# -----------------------------------------------------------------
|
||
# CD ADIMLARI YARINA ERTELENDİ
|
||
# ----------------------------------------------------------------- |