25 lines
676 B
YAML
25 lines
676 B
YAML
# Example: Staged deployment with E2E tests (like gbv-aktuell)
|
|
# Place in your project's .forgejo/workflows/deploy.yaml
|
|
|
|
name: Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'renovate.json'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
uses: infrastructure/ci-templates/.forgejo/workflows/typo3-staged-deploy.yaml@main
|
|
with:
|
|
stage_url: https://PROJECTNAME.cloonar.dev
|
|
php_version: '8.3'
|
|
run_e2e_tests: true
|
|
e2e_path: tests/e2e
|
|
deploy_production: false # Set true for auto-deploy to prod after tests pass
|
|
secrets:
|
|
stage_key: ${{ secrets.STAGE_KEY }}
|
|
prod_key: ${{ secrets.PROD_KEY }}
|