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

     1  apiVersion: skaffold/v4beta11
     2  kind: Config
     3  verify:
     4  - name: hello-world-1
     5    container:
     6      name: hello-world-1
     7      image: docker.io/hello-world:latest
     8  - name: hello-world-2
     9    container:
    10      name: hello-world-2
    11      image: docker.io/hello-world:latest
    12  - name: alpine-1
    13    container:
    14      name: alpine-1
    15      image: alpine:3.15.4
    16      command: ["/bin/sh"]
    17      args: ["-c", "echo $FOO; sleep 10; echo bye"]
    18  - name: alpine-2
    19    container:
    20      name: alpine-2
    21      image: alpine:3.15.4
    22      command: ["/bin/sh"]
    23      args: ["-c", "echo $FOO; sleep 10; echo bye"]
    24  
    25  profiles:
    26    - name: no-duplicated-logs
    27      verify:
    28        - name: alpine-1
    29          container:
    30            name: alpine-1
    31            image: alpine:3.15.4
    32            command: ["/bin/sh"]
    33            args: ["-c", "echo alpine-1; sleep 2; echo bye alpine-1"]
    34    
    35    - name: local-built-artifact
    36  
    37      build:
    38        artifacts:
    39          - image: localtask
    40            context: ./app
    41          - image: img-not-used-in-verify
    42            context: ./app
    43        
    44  
    45      verify:
    46        - name: alpine-1
    47          container:
    48            name: alpine-1
    49            image: alpine:3.15.4
    50            command: ["/bin/sh"]
    51            args: ["-c", "echo alpine-1; sleep 2; echo bye alpine-1"]
    52        
    53        - name: localtask
    54          container:
    55            name: localtask
    56            image: localtask
    57  
    58    - name: succeed-with-timeout
    59      verify:
    60        - name: alpine-1
    61          timeout: 20
    62          container:
    63            name: alpine-1
    64            image: alpine:3.15.4
    65            command: ["/bin/sh"]
    66            args: ["-c", "echo alpine-1; sleep 10; echo bye alpine-1"]
    67        - name: alpine-2
    68          timeout: 25
    69          container:
    70            name: alpine-2
    71            image: alpine:3.15.4
    72            command: ["/bin/sh"]
    73            args: ["-c", "echo alpine-2; sleep 15; echo bye alpine-2"]
    74  
    75    - name: succeed-all-one-with-timeout
    76      verify:
    77        - name: alpine-1
    78          container:
    79            name: alpine-1
    80            image: alpine:3.15.4
    81            command: ["/bin/sh"]
    82            args: ["-c", "echo alpine-1; sleep 10; echo bye alpine-1"]
    83        - name: alpine-2
    84          timeout: 25
    85          container:
    86            name: alpine-2
    87            image: alpine:3.15.4
    88            command: ["/bin/sh"]
    89            args: ["-c", "echo alpine-2; sleep 15; echo bye alpine-2"]