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: Cleanup Staging Environments

on:
  delete:
  workflow_dispatch:
    inputs:
      environment_name:
        description: 'Branch / environment name to remove (will be sanitized)'
        required: false
        type: string

jobs:
  cleanup-deleted-branch:
    if: github.event_name == 'delete' && github.event.ref_type == 'branch'
    permissions:
      contents: read
    uses: nickmous/symfony-k8s-deployment-kit/.github/workflows/[email protected]
    with:
      app-name: myapp
      fleet-repo: OWNER/fleet-infra
      branch-name: ${{ github.event.ref }}
    secrets: inherit

  manual-cleanup:
    if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment_name != ''
    permissions:
      contents: read
    uses: nickmous/symfony-k8s-deployment-kit/.github/workflows/[email protected]
    with:
      app-name: myapp
      fleet-repo: OWNER/fleet-infra
      branch-name: ${{ github.event.inputs.environment_name }}
    secrets: inherit