github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/testflight/fixtures/resource-type-versions.yml (about)

     1  ---
     2  resource_types:
     3  - name: custom-resource-type
     4    type: mock
     5    source:
     6      mirror_self: true
     7      initial_version: ((hash))
     8  
     9  resources:
    10  - name: some-resource
    11    type: custom-resource-type
    12    source:
    13      initial_version: ((hash))
    14  
    15  jobs:
    16  - name: initial-job
    17    plan:
    18    - get: some-resource
    19    - task: print-fetched-stuff
    20      config:
    21        platform: linux
    22        image_resource:
    23          type: custom-resource-type
    24          source: {mirror_self: true}
    25  
    26        inputs:
    27        - name: some-resource
    28  
    29        run:
    30          path: sh
    31          args: [-c, 'echo fetched version: $(cat some-resource/version)']
    32  
    33  - name: passed-job
    34    plan:
    35    - get: some-resource
    36      passed: [initial-job]
    37    - task: print-fetched-stuff
    38      config:
    39        platform: linux
    40        image_resource:
    41          type: custom-resource-type
    42          source: {mirror_self: true}
    43  
    44        inputs:
    45        - name: some-resource
    46  
    47        run:
    48          path: sh
    49          args: [-c, 'echo fetched version: $(cat some-resource/version)']