{
    "url": "https://delaparra-services.nl/nl/skills/github-actions-templates",
    "locale": "nl",
    "title": "GitHub Actions-sjablonen | DeLaParra Services",
    "description": "Maak productieklaar GitHub Actions-workflows voor het automatisch testen, bouwen en implementeren van applicaties. Gebruik deze bij het opzetten van CI/CD met GitHub Actions, het automatiseren van ontwikkelingsworkflows of het maken van herbruikbare workflowsjablonen.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/github-actions-templates",
        "nl": "https://delaparra-services.nl/nl/skills/github-actions-templates"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/nl/skills/github-actions-templates.csv",
        "md": "https://delaparra-services.nl/nl/skills/github-actions-templates.md",
        "json": "https://delaparra-services.nl/nl/skills/github-actions-templates.json",
        "zip": "https://delaparra-services.nl/nl/skills/github-actions-templates.zip",
        "pdf": "https://delaparra-services.nl/nl/skills/github-actions-templates.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/nl/skills/github-actions-templates.csv",
            "encodingFormat": "text/csv",
            "name": "github-actions-templates.csv"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/github-actions-templates.json",
            "encodingFormat": "application/json",
            "name": "github-actions-templates.json"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/github-actions-templates.md",
            "encodingFormat": "text/markdown",
            "name": "github-actions-templates.md"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/github-actions-templates.pdf",
            "encodingFormat": "application/pdf",
            "name": "github-actions-templates.pdf"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/github-actions-templates.zip",
            "encodingFormat": "application/zip",
            "name": "github-actions-templates.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/github-actions-templates/download",
            "encodingFormat": "application/zip",
            "name": "github-actions-templates-files.zip"
        }
    ],
    "markdown": "# GitHub Actions-sjablonen\n\n \n\nMaak productieklaar GitHub Actions-workflows voor het automatisch testen, bouwen en implementeren van applicaties. Gebruik deze bij het opzetten van CI/CD met GitHub Actions, het automatiseren van ontwikkelingsworkflows of het maken van herbruikbare workflowsjablonen.\n\n \n\n**Licentie** MIT\n\n \n\n**Bron** wshobson/agents\n\n [Download zip](<https://delaparra-services.nl/skills/github-actions-templates/download>)   \n\n# GitHub Actions-sjablonen\n\n \n\nKant-en-klare GitHub Actions-workflowpatronen voor het testen, bouwen en implementeren van applicaties.\n\n \n\n## Doel\n\n \n\nMaak efficiënte, veilige GitHub Actions-workflows voor continue integratie en implementatie in verschillende tech-stacks.\n\n \n\n## Wanneer gebruik je dit?\n\n \n\n- Automatiseer het testen en de implementatie \n- Docker-images bouwen en naar registries pushen \n- Implementeer in Kubernetes-clusters \n- Voer beveiligingsscans uit \n- Zet matrix-builds op voor meerdere omgevingen\n\n \n\n## Veelvoorkomende workflowpatronen\n\n \n\n### Patroon 1: Testworkflow\n\n \n\n```\nname: Test\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    strategy:\n      matrix:\n        node-version: [18.x, 20.x]\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Use Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v4\n        with:\n          node-version: ${{ matrix.node-version }}\n          cache: \"npm\"\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run linter\n        run: npm run lint\n\n      - name: Run tests\n        run: npm test\n\n      - name: Upload coverage\n        uses: codecov/codecov-action@v4\n        with:\n          files: ./coverage/lcov.info\n```\n\n \n\n### Patroon 2: Docker-image bouwen en pushen\n\n \n\n```\nname: Build and Push\n\non:\n  push:\n    branches: [main]\n    tags: [\"v*\"]\n\nenv:\n  REGISTRY: ghcr.io\n  IMAGE_NAME: ${{ github.repository }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      packages: write\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Log in to Container Registry\n        uses: docker/login-action@v3\n        with:\n          registry: ${{ env.REGISTRY }}\n          username: ${{ github.actor }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Extract metadata\n        id: meta\n        uses: docker/metadata-action@v5\n        with:\n          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}\n          tags: |\n            type=ref,event=branch\n            type=ref,event=pr\n            type=semver,pattern={{version}}\n            type=semver,pattern={{major}}.{{minor}}\n\n      - name: Build and push\n        uses: docker/build-push-action@v5\n        with:\n          context: .\n          push: true\n          tags: ${{ steps.meta.outputs.tags }}\n          labels: ${{ steps.meta.outputs.labels }}\n          cache-from: type=gha\n          cache-to: type=gha,mode=max\n```\n\n \n\n### Patroon 3: Implementeren in Kubernetes\n\n \n\n```\nname: Deploy to Kubernetes\n\non:\n  push:\n    branches: [main]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Configure AWS credentials\n        uses: aws-actions/configure-aws-credentials@v4\n        with:\n          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          aws-region: us-west-2\n\n      - name: Update kubeconfig\n        run: |\n          aws eks update-kubeconfig --name production-cluster --region us-west-2\n\n      - name: Deploy to Kubernetes\n        run: |\n          kubectl apply -f k8s/\n          kubectl rollout status deployment/my-app -n production\n          kubectl get services -n production\n\n      - name: Verify deployment\n        run: |\n          kubectl get pods -n production\n          kubectl describe deployment my-app -n production\n```\n\n \n\n### Patroon 4: Matrix opbouwen\n\n \n\n```\nname: Matrix Build\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n        python-version: [\"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Set up Python\n        uses: actions/setup-python@v5\n        with:\n          python-version: ${{ matrix.python-version }}\n\n      - name: Install dependencies\n        run: |\n          python -m pip install --upgrade pip\n          pip install -r requirements.txt\n\n      - name: Run tests\n        run: pytest\n```\n\n \n\n## Best practices voor workflows\n\n \n\n1. **Gebruik specifieke actieversies** (@v4, niet @latest) \n1. **Cache-afhankelijkheden** om het bouwen te versnellen \n1. **Gebruik geheimen** voor gevoelige gegevens \n1. **Voer statuscontroles uit** op PR’s \n1. **Gebruik matrix-builds** voor het testen van meerdere versies \n1. **Stel de juiste machtigingen in** \n1. **Gebruik herbruikbare workflows** voor veelvoorkomende patronen \n1. **Zet goedkeuringsstappen in** voor de productie \n1. **Stappen voor meldingen toevoegen** bij storingen \n1. **Gebruik zelfgehoste runners** voor gevoelige taken\n\n \n\n## Herbruikbare workflows\n\n \n\n```\n# .github/workflows/reusable-test.yml\nname: Reusable Test Workflow\n\non:\n  workflow_call:\n    inputs:\n      node-version:\n        required: true\n        type: string\n    secrets:\n      NPM_TOKEN:\n        required: true\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: ${{ inputs.node-version }}\n      - run: npm ci\n      - run: npm test\n```\n\n \n\n**Gebruik een herbruikbare workflow:**\n\n \n\n```\njobs:\n  call-test:\n    uses: ./.github/workflows/reusable-test.yml\n    with:\n      node-version: \"20.x\"\n    secrets:\n      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n\n \n\n## Beveiligingsscan\n\n \n\n```\nname: Security Scan\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  security:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Run Trivy vulnerability scanner\n        uses: aquasecurity/trivy-action@0.28.0\n        with:\n          scan-type: \"fs\"\n          scan-ref: \".\"\n          format: \"sarif\"\n          output: \"trivy-results.sarif\"\n\n      - name: Upload Trivy results to GitHub Security\n        uses: github/codeql-action/upload-sarif@v3\n        with:\n          sarif_file: \"trivy-results.sarif\"\n\n      - name: Run Snyk Security Scan\n        uses: snyk/actions/node@0.4.0\n        env:\n          SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}\n```\n\n \n\n## Implementatie met goedkeuringen\n\n \n\n```\nname: Deploy to Production\n\non:\n  push:\n    tags: [\"v*\"]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment:\n      name: production\n      url: https://app.example.com\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Deploy application\n        run: |\n          echo \"Deploying to production...\"\n          # Deployment commands here\n\n      - name: Notify Slack\n        if: success()\n        uses: slackapi/slack-github-action@v1\n        with:\n          webhook-url: ${{ secrets.SLACK_WEBHOOK }}\n          payload: |\n            {\n              \"text\": \"Deployment to production completed successfully!\"\n            }\n```\n\n \n\n## Gerelateerde vaardigheden\n\n \n\n- ` gitlab-ci-patterns ` - Voor GitLab CI-workflows \n- ` deployment-pipeline-design ` - Voor de architectuur van de pijplijn \n- ` secrets-management ` - Voor het beheer van geheimen\n\n \n\n## Bestanden\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md `\n\n \n\n## Gerelateerde termen\n\n \n\n- [Blue-green deployment](<https://delaparra-services.nl/nl/kennisbank/blue-green-deployment>) \n- [CI/CD (Continuous Integration / Continuous Deployment)](<https://delaparra-services.nl/nl/kennisbank/cicd-continuous-integration-continuous-deployment>) \n- [Feature flag](<https://delaparra-services.nl/nl/kennisbank/feature-flag>) \n- [Pipeline](<https://delaparra-services.nl/nl/kennisbank/pipeline>)\n\n \n\n[Een skill installeren in je AI-assistent](<https://delaparra-services.nl/nl/handleidingen/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/nl/skills/github-actions-templates)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Maatwerk software, webapplicaties en mobiele apps, ontwikkeld in Laravel door één ontwikkelaar in Groningen. Vaste prijs vooraf, volledige broncode bij oplevering.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, Nederland",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Webdesign en -ontwikkeling",
                    "App-ontwikkeling",
                    "Maatwerk software en webapplicaties",
                    "OpenSpec",
                    "Beoordeling van AI-code",
                    "Je eigen programmeeragent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#webpage",
                "url": "https://delaparra-services.nl/nl/skills/github-actions-templates",
                "name": "GitHub Actions-sjablonen | DeLaParra Services",
                "description": "Maak productieklaar GitHub Actions-workflows voor het automatisch testen, bouwen en implementeren van applicaties. Gebruik deze bij het opzetten van CI/CD met GitHub Actions, het automatiseren van ontwikkelingsworkflows of het maken van herbruikbare workflowsjablonen.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "nl",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/nl"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "GitHub Actions-sjablonen"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#skill",
                "url": "https://delaparra-services.nl/nl/skills/github-actions-templates",
                "name": "GitHub Actions-sjablonen",
                "description": "Maak productieklaar GitHub Actions-workflows voor het automatisch testen, bouwen en implementeren van applicaties. Gebruik deze bij het opzetten van CI/CD met GitHub Actions, het automatiseren van ontwikkelingsworkflows of het maken van herbruikbare workflowsjablonen.",
                "inLanguage": "nl",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#dataset",
                "name": "GitHub Actions-sjablonen",
                "description": "Maak productieklaar GitHub Actions-workflows voor het automatisch testen, bouwen en implementeren van applicaties. Gebruik deze bij het opzetten van CI/CD met GitHub Actions, het automatiseren van ontwikkelingsworkflows of het maken van herbruikbare workflowsjablonen.",
                "url": "https://delaparra-services.nl/nl/skills/github-actions-templates",
                "identifier": "https://delaparra-services.nl/nl/skills/github-actions-templates#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/nl/skills/github-actions-templates#skill"
                },
                "creditText": "wshobson/agents",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "nl",
                "dateModified": "2026-11-28T14:00:11+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/nl/kennisbank#skills",
                    "name": "Skills voor AI-programmeerassistenten",
                    "url": "https://delaparra-services.nl/nl/kennisbank"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/nl/kennisbank#catalog",
                    "name": "Datacatalogus van de kennisbank",
                    "url": "https://delaparra-services.nl/nl/kennisbank"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/github-actions-templates.csv",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/github-actions-templates.json",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/github-actions-templates.md",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/github-actions-templates.pdf",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/github-actions-templates.zip",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "github-actions-templates-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/github-actions-templates/download",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:11+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}