get.porter.sh/porter@v1.3.0/tests/testdata/myinfra/porter.yaml (about)

     1  schemaVersion: 1.1.0
     2  name: myinfra
     3  version: 0.1.0
     4  description: "Deploys my infrastructure"
     5  registry: "localhost:5000"
     6  
     7  parameters:
     8    - name: database
     9      type: string
    10      default: mydb
    11    - name: logLevel
    12      type: string
    13  
    14  credentials:
    15    - name: token
    16  
    17  outputs:
    18    - name: mysql-connstr
    19  
    20  dependencies:
    21    requires:
    22      - name: db
    23        bundle:
    24          reference: "localhost:5000/mysqldb:v0.1.0"
    25          interface:
    26            id: "https://porter.sh/interfaces/#mysql"
    27        credentials:
    28          token: ${bundle.credentials.token}
    29        parameters:
    30          database: ${bundle.parameters.database}
    31          logLevel: ${bundle.parameters.logLevel}
    32  
    33  mixins:
    34    - exec
    35  
    36  install:
    37    - exec:
    38        command: echo
    39        arguments:
    40          - "Installing some infrastructure"
    41  
    42  upgrade:
    43    - exec:
    44        command: echo
    45        arguments:
    46          - "Upgrading some infrastructure"
    47  
    48  uninstall:
    49    - exec:
    50        command: echo
    51        arguments:
    52          - "Uninstalling some infrastructure"