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