ops(ci): trigger CI on main pushes + disable auto deploy-staging Phase 0
- CI runs on push to main + develop + PR (was: ignore main → never ran on main) - Deploy staging : workflow_dispatch only (re-activer push trigger quand secrets STAGING_HOST/USER/SSH_KEY configures cote GitHub) Effet : push suivant trigger un CI complet et verifie que la stack passe les gates avant tout deploy.
This commit is contained in:
parent
d510bddc34
commit
991d172f69
2 changed files with 5 additions and 3 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -2,9 +2,10 @@ name: CI
|
|||
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [main]
|
||||
branches: [main, develop]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
5
.github/workflows/deploy-staging.yml
vendored
5
.github/workflows/deploy-staging.yml
vendored
|
|
@ -1,9 +1,10 @@
|
|||
name: Deploy Staging
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
# Phase 0 : workflow_dispatch only — re-activer le push trigger quand secrets STAGING_* configures
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue