Merge remote-tracking branch 'origin/master' into feature/hero-module
This commit is contained in:
@@ -480,6 +480,7 @@ jobs:
|
||||
needs.frontend-test.result != 'failure' && needs.frontend-test.result != 'cancelled' &&
|
||||
needs.frontend-lint.result != 'failure' && needs.frontend-lint.result != 'cancelled' &&
|
||||
github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_sls_production == 'true' &&
|
||||
startsWith(github.ref, 'refs/heads/release/') &&
|
||||
(needs.changes.outputs.backend == 'true' || needs.changes.outputs.frontend == 'true')
|
||||
runs-on: linux
|
||||
steps:
|
||||
@@ -555,12 +556,13 @@ jobs:
|
||||
health_check_url: ${{ vars.HEALTH_CHECK_URL_TEST }}
|
||||
run_db_backup: false
|
||||
|
||||
# Production deploy ONLY on an explicit workflow_dispatch run with deploy_sls_production checked
|
||||
# (FR-04, D-09) — never reachable from a plain push to master, so pushing cannot deploy production
|
||||
# under any circumstance.
|
||||
# Production deploy ONLY on an explicit workflow_dispatch run with deploy_sls_production checked, and
|
||||
# only when that run is on a release/* branch (same rule as ASF) — never reachable from a plain push
|
||||
# to master, so pushing cannot deploy production under any circumstance, and a dispatch from master
|
||||
# or a feature branch does nothing for production.
|
||||
deploy-sls-production:
|
||||
needs: [publish-sls-production, config-sls]
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_sls_production == 'true'
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_sls_production == 'true' && startsWith(github.ref, 'refs/heads/release/')
|
||||
uses: ./.gitea/workflows/deploy-scp.yaml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user