From e423785a2078433176f8673d62f58f2a4c95e3ae Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Mon, 8 Dec 2025 12:56:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20ci:=20remove=20auto-deploy,=20ke?= =?UTF-8?q?ep=20manual/tag-based=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9059055b..f30b9b10a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,12 @@ -# CI Pipeline: Validates code on PRs, builds and deploys on push to protected branches +# CI Pipeline: Validates code on PRs, builds images on push # # Flow: # PR → dev/main : Runs validation (required status check) -# Push → dev : Builds images + deploys to staging -# Push → main : Builds images (production deploy is manual) +# Push → dev/main : Builds Docker images (NO auto-deploy) +# +# Deployments are triggered separately: +# - Manual: workflow_dispatch on cd-staging.yml / cd-production.yml +# - Tag-based: push tag like "chat-staging-v1.0.0" triggers cd-staging-tagged.yml # # Full config archived at: .github/workflows/ci-main.full.yml @@ -130,21 +133,3 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - # Trigger staging deployment after all images are built (only on push to dev) - deploy-staging: - name: Deploy to Staging - runs-on: ubuntu-latest - needs: build-docker-images - if: github.event_name == 'push' && github.ref == 'refs/heads/dev' - steps: - - name: Trigger staging deployment - uses: actions/github-script@v7 - with: - script: | - await github.rest.actions.createWorkflowDispatch({ - owner: context.repo.owner, - repo: context.repo.repo, - workflow_id: 'cd-staging.yml', - ref: 'dev' - }); - console.log('Staging deployment triggered');