get.porter.sh/porter@v1.3.0/tests/integration/testdata/bundles/bundle-with-param-apply-lint-error/porter.yaml (about)

     1  # This bundle is designed to cause the porter lint/build commands to fail
     2  schemaType: Bundle
     3  schemaVersion: 1.0.1
     4  name: exec-mixin-lint-error
     5  version: 0.1.0
     6  description: "This bundle is designed to cause the porter lint/build commands to fail, use --no-lint to use it anyway"
     7  registry: "localhost:5000"
     8  
     9  mixins:
    10    - exec
    11  
    12  parameters:
    13    - name: onlyApplyToUninstall
    14      description: Only applies to uninstall
    15      type: string
    16      default: appliesToUninstall
    17      applyTo:
    18        - uninstall
    19  
    20  install:
    21    - exec:
    22        description: trigger a lint error
    23        command: echo
    24        arguments:
    25          - ${ bundle.parameters.onlyApplyToUninstall }
    26  
    27  upgrade:
    28    - exec:
    29        description: "World 2.0"
    30        command: echo
    31        arguments:
    32          - upgrade
    33  
    34  uninstall:
    35    - exec:
    36        description: "Uninstall Hello World"
    37        command: echo
    38        arguments:
    39          - uninstall