github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/custom-actions-k8s/skaffold.yaml (about)

     1  apiVersion: skaffold/v4beta11
     2  kind: Config
     3  
     4  build:
     5    artifacts:
     6      - image: localtaks
     7        context: ./app
     8  
     9  customActions:
    10    - name: action-fail-timeout
    11      executionMode:
    12        kubernetesCluster: {}
    13      timeout: 1 # seconds timeout
    14      containers:
    15        - name: task1
    16          image: alpine:3.15.4
    17          command: ["/bin/sh"]
    18          args: ["-c", "echo hello-$FOO && sleep 2 && echo bye-$FOO"]
    19          env:
    20            - name: FOO
    21              value: from-task1
    22  
    23    - name: action-fail-fast
    24      executionMode:
    25        kubernetesCluster: {}
    26      containers:
    27        - name: task3
    28          image: alpine:3.15.4
    29          command: ["/bin/sh"]
    30          args: ["-c", "echo hello-$FOO && sleep 15 && echo bye-$FOO"]
    31          env:
    32            - name: FOO
    33              value: from-task3
    34        - name: task4
    35          image: alpine:3.15.4
    36          command: ["/bin/sh"]
    37          args: ["-c", "echo hello-$FOO && exit 1"]
    38          env:
    39            - name: FOO
    40              value: from-task4
    41    
    42    - name: action-fail-safe
    43      executionMode:
    44        kubernetesCluster: {}
    45      failFast: false
    46      containers:
    47        - name: task5
    48          image: alpine:3.15.4
    49          command: ["/bin/sh"]
    50          args: ["-c", "echo hello-$FOO && sleep 1 && echo bye-$FOO"]
    51          env:
    52            - name: FOO
    53              value: from-task5
    54        - name: task6
    55          image: alpine:3.15.4
    56          command: ["/bin/sh"]
    57          args: ["-c", "echo hello-$FOO && exit 1"]
    58          env:
    59            - name: FOO
    60              value: from-task6
    61    
    62    - name: action-fail-safe-logs
    63      executionMode:
    64        kubernetesCluster: {}
    65      failFast: false
    66      containers:
    67        - name: task5l
    68          image: alpine:3.15.4
    69          command: ["/bin/sh"]
    70          args: ["-c", "echo hello-$FOO && sleep 1 && echo bye-$FOO"]
    71          env:
    72            - name: FOO
    73              value: from-task5l
    74        - name: task6l
    75          image: alpine:3.15.4
    76          command: ["/bin/sh"]
    77          args: ["-c", "echo hello-$FOO && exit 1"]
    78          env:
    79            - name: FOO
    80              value: from-task6l
    81  
    82    - name: action-succeeded
    83      executionMode:
    84        kubernetesCluster: {}
    85      containers:
    86        - name: task7
    87          image: alpine:3.15.4
    88          command: ["/bin/sh"]
    89          args: ["-c", "echo hello-$FOO && echo bye-$FOO"]
    90          env:
    91            - name: FOO
    92              value: from-task7
    93        - name: task8
    94          image: alpine:3.15.4
    95          command: ["/bin/sh"]
    96          args: ["-c", "echo hello-$FOO && echo bye-$FOO"]
    97          env:
    98            - name: FOO
    99              value: from-task8
   100    
   101    - name: action-succeeded-logs
   102      executionMode:
   103        kubernetesCluster: {}
   104      containers:
   105        - name: task7l
   106          image: alpine:3.15.4
   107          command: ["/bin/sh"]
   108          args: ["-c", "echo hello-$FOO && echo bye-$FOO"]
   109          env:
   110            - name: FOO
   111              value: from-task7l
   112        - name: task8l
   113          image: alpine:3.15.4
   114          command: ["/bin/sh"]
   115          args: ["-c", "echo hello-$FOO && echo bye-$FOO"]
   116          env:
   117            - name: FOO
   118              value: from-task8l
   119    
   120    - name: action-with-local-built-img-1
   121      executionMode:
   122        kubernetesCluster: {}
   123      containers:
   124        - name: local-img-task1-1
   125          image: localtaks
   126          env:
   127            - name: FOO
   128              value: from-local-img
   129    
   130    - name: action-with-local-built-img-2
   131      executionMode:
   132        kubernetesCluster: {}
   133      containers:
   134        - name: local-img-task1-2
   135          image: localtaks
   136          env:
   137            - name: FOO
   138              value: from-local-img