get.porter.sh/porter@v1.3.0/tests/integration/testdata/bundles/outputs-example/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 outputs: 11 - name: user-output 12 type: string 13 sensitive: false 14 applyTo: 15 - upgrade 16 17 install: 18 - exec: 19 description: "Produce step-level output" 20 command: ./helpers.sh 21 arguments: 22 - dump-config 23 outputs: 24 - name: user 25 sensitive: false 26 jsonPath: '$.user' 27 # This step tests successful interpolation of a step-level output 28 - exec: 29 description: "Echo step-level output" 30 command: ./helpers.sh 31 arguments: 32 - dump 33 - "{{ bundle.outputs.user }}" 34 35 upgrade: 36 - exec: 37 description: "Produce bundle-level output" 38 command: ./helpers.sh 39 arguments: 40 - dump-config 41 outputs: 42 - name: user-output 43 jsonPath: '$.user' 44 # This step tests successful interpolation of a bundle-level output in the same action 45 # Note: this assertion is placed in the bundle itself as docker driver output still goes directly 46 # to stdout, hence we can't yet capture it in the integration test output 47 # https://github.com/cnabio/cnab-go/issues/78 48 - exec: 49 description: "Validate bundle-level output value in the same action as it was produced" 50 command: ./helpers.sh 51 arguments: 52 - assert-output-value 53 - "{{ bundle.outputs.user-output }}" 54 - "sally" 55 56 uninstall: 57 # This step tests successful interpolation of a bundle-level output across actions 58 - exec: 59 description: "Echo bundle-level output" 60 command: ./helpers.sh 61 arguments: 62 - dump 63 - "{{ bundle.outputs.user-output }}"