From fb44349bf88d05a0f2b6e35a7a1d2be88a0c5d4d Mon Sep 17 00:00:00 2001 From: bilalgursen Date: Sun, 26 Jul 2026 01:04:13 +0300 Subject: [PATCH] =?UTF-8?q?Gitea=20CI'y=C4=B1=20s=C4=B1f=C4=B1rdan=20yaz:?= =?UTF-8?q?=20tek=20job=20ile=20compose=20build=20&=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .gitea/workflows/ci.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index aa14fea..ce92119 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,12 +1,20 @@ -name: Test +name: Deploy on: push: + branches: [main] jobs: - test: + deploy: runs-on: ubuntu-latest - steps: - - name: Test - run: echo "Runner" + - name: Kaynak kodu çek + uses: actions/checkout@v4 + + - name: .env.production oluştur + run: printf '%s\n' "${{ secrets.ENV_PRODUCTION }}" > .env.production + + - name: Build & deploy + run: | + docker compose -p kolaytercih up -d --build --remove-orphans + docker image prune -f