get.porter.sh/porter@v1.3.0/tests/integration/testdata/bundles/bundle-with-file-params/porter.yaml (about)

     1  schemaVersion: 1.0.0-alpha.1
     2  name: mybun
     3  version: 0.1.0
     4  description: "An example Porter configuration"
     5  registry: "localhost:5000"
     6  
     7  mixins:
     8    - exec
     9  
    10  parameters:
    11    - name: myfile
    12      type: file
    13      path: /cnab/app/myfile
    14    - name: myotherfile
    15      type: file
    16      path: /cnab/app/myotherfile
    17    - name: yetanotherfile
    18      type: file
    19      path: /cnab/app/yetanotherfile
    20    # This is added to cover bug fix for https://github.com/getporter/porter/issues/835
    21    # It will be inherently exercised in install_test.go via a default installation
    22    - name: onlyUpgrade
    23      type: string
    24      applyTo:
    25        - upgrade
    26  
    27  outputs:
    28    - name: myfile
    29      type: string
    30      applyTo:
    31        - install
    32    - name: myotherfile
    33      type: file
    34      path: /cnab/app/myotherfile
    35      applyTo:
    36        - install
    37    - name: yetanotherfile
    38      type: file
    39      path: /cnab/app/yetanotherfile
    40      applyTo:
    41        - install
    42  
    43  install:
    44    - exec:
    45        description: "Install Hello World"
    46        command: ./helpers.sh
    47        arguments:
    48          - dump-myfile
    49        outputs:
    50          - name: myfile
    51            path: /cnab/app/myfile
    52  
    53  upgrade:
    54    - exec:
    55        description: "World 2.0"
    56        command: ./helpers.sh
    57        arguments:
    58          - dump-myfile
    59  
    60  uninstall:
    61    - exec:
    62        description: "Uninstall Hello World"
    63        command: ./helpers.sh
    64        arguments:
    65          - dump-myfile