github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/build-dependencies/skaffold.yaml (about)

     1  apiVersion: skaffold/v4beta11
     2  kind: Config
     3  build:
     4    tagPolicy:
     5      sha256: {}
     6  
     7    artifacts:
     8    - image: image1
     9      context: app1
    10      custom:
    11        buildCommand: ./build.sh
    12        dependencies:
    13          paths:
    14          - "foo"
    15      requires:
    16      - image: image2 #test that build-arg set to image field when alias field is missing (`ARG image2`)
    17  
    18    - image: image2
    19      context: app2
    20      docker:
    21        noCache: true
    22        buildArgs:
    23          SLEEP: "1"
    24          FAIL: "0"
    25      requires:
    26      - image: image3
    27        alias: IMAGE3 #test that build-arg is set to alias field when present (`ARG IMAGE3`, not `image3`).
    28  
    29    - image: image3
    30      context: app3
    31      docker:
    32        noCache: true
    33        buildArgs:
    34          SLEEP: "2"
    35          FAIL: "0"
    36  
    37    - image: image4
    38      context: app4
    39      docker:
    40        noCache: true
    41        buildArgs:
    42          SLEEP: "3"
    43          FAIL: "0"
    44  
    45  manifests:
    46     rawYaml:
    47        - 'kubernetes/*.yaml'
    48  
    49  profiles:
    50  - name: concurrency-0
    51    build:
    52      local:
    53        concurrency: 0
    54  - name: concurrency-3
    55    build:
    56      local:
    57        concurrency: 3
    58  - name: invalid-dependency
    59    patches:
    60    - op: add
    61      path: /build/artifacts/0/requires/0/image
    62      value: "image5"
    63  - name: circular-dependency
    64    patches:
    65    - op: add
    66      path: /build/artifacts/1/requires/0/image
    67      value: "image1"
    68  - name: failed-dependency
    69    patches:
    70    - path: /build/artifacts/1/docker/buildArgs
    71      value:
    72        SLEEP: "3"
    73        FAIL: "1"