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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore: [main]
|
branches: [main, develop]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
||||||
5
.github/workflows/deploy-staging.yml
vendored
5
.github/workflows/deploy-staging.yml
vendored
|
|
@ -1,9 +1,10 @@
|
||||||
name: Deploy Staging
|
name: Deploy Staging
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
# Phase 0 : workflow_dispatch only — re-activer le push trigger quand secrets STAGING_* configures
|
||||||
branches: [main]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
# push:
|
||||||
|
# branches: [main]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue