github.com/replicatedhq/ship@v0.55.0/integration/base/conditional-asset/expected/.ship/release.yml (about)

     1  
     2  ---
     3  assets:
     4    v1:
     5      - inline:
     6          contents: |
     7            #!/bin/bash
     8            echo "Asset not ignored"
     9          dest: ./scripts/not-ignored.sh
    10          mode: 0777
    11          when: '{{repl ConfigOptionEquals "bool_option" "0"}}'
    12      - inline:
    13          contents: |
    14            #!/bin/bash
    15            echo "Asset ignored"
    16          dest: ./scripts/ignored.sh
    17          mode: 0777
    18          when: '{{repl ConfigOptionEquals "bool_option" "1"}}'
    19      - docker:
    20          dest: ./images/postgres.tar
    21          image: postgres:10.1
    22          source: public
    23          when: '{{repl ConfigOptionEquals "bool_option" "1"}}'
    24  config:
    25    v1:
    26      - name: test_options
    27        title: Test Options
    28        description: testing testing 123
    29        items:
    30        - name: bool_option
    31          title: Boolean Option
    32          type: bool
    33          default: "0"
    34  lifecycle:
    35    v1:
    36      - render: {}