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.

examples / 0.1
yaml
# Drop this into your project's .github/workflows/.
# Edit the `with:` values to match your app. The actual deploy logic lives
# in symfony-k8s — bump the @ref to upgrade.

name: Deploy to Production

on:
  release:
    types: [published]
  workflow_dispatch:
    inputs:
      version:
        description: 'Version tag to build (e.g., v1.0.0)'
        required: true
        default: 'v0.0.0-manual'

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: read
      packages: write
    uses: nickmous/symfony-k8s-deployment-kit/.github/workflows/[email protected]
    with:
      version: ${{ github.event.inputs.version || github.ref_name }}
      prod-url: https://example.com
      # Sentry release tracking — leave these blank to skip.
      sentry-org: ''
      sentry-project: ''
      sentry-url: ''
    secrets: inherit