workflows/deploy-staging.yaml
Bekijk op GitHub ↗ (opent in een nieuw tabblad)yaml
# Drop this into your project's .github/workflows/.
# Bump the @ref to pick up template updates.
name: Deploy to Staging
on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
branch:
description: 'Branch to deploy (empty = current ref)'
required: false
type: string
jobs:
deploy:
# Reusable workflows can only RESTRICT caller permissions, never expand
# them. Declare what the reusable workflow needs here so it can request
# those scopes on its GITHUB_TOKEN.
permissions:
contents: write
packages: write
uses: nickmous/symfony-k8s-deployment-kit/.github/workflows/[email protected]
with:
app-name: myapp
fleet-repo: OWNER/fleet-infra
staging-domain-base: staging.example.com
# Comma-separated `staging.X` hosts that should be rewritten to
# `{slug}.staging.X` per branch.
staging-domains: 'staging.example.com'
branch: ${{ github.event.inputs.branch || '' }}
sentry-org: ''
sentry-project: ''
sentry-url: ''
secrets: inherit