Naar de inhoud
imlostincode
ENNL
Deployment kit

symfony-k8s-deployment-kit

The same idea for Symfony apps: one shared deploy setup instead of a copy in every project.

Niet uitgebrachtJe leest de docs van main. Dit kan nog veranderen voor de volgende release.Terug naar de nieuwste release →
examples / main
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