github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/custom-actions-local/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 timeout: 1 # seconds timeout 12 containers: 13 - name: task1 14 image: alpine:3.15.4 15 command: ["/bin/sh"] 16 args: ["-c", "echo hello-$FOO && sleep 2 && echo bye-$FOO"] 17 env: 18 - name: FOO 19 value: from-task1 20 21 - name: action-fail-fast 22 containers: 23 - name: task3 24 image: alpine:3.15.4 25 command: ["/bin/sh"] 26 args: ["-c", "echo hello-$FOO && sleep 1 && echo bye-$FOO"] 27 env: 28 - name: FOO 29 value: from-task3 30 - name: task4 31 image: alpine:3.15.4 32 command: ["/bin/sh"] 33 args: ["-c", "echo hello-$FOO && exit 1"] 34 env: 35 - name: FOO 36 value: from-task4 37 38 - name: action-fail-safe 39 failFast: false 40 containers: 41 - name: task5 42 image: alpine:3.15.4 43 command: ["/bin/sh"] 44 args: ["-c", "echo hello-$FOO && sleep 1 && echo bye-$FOO"] 45 env: 46 - name: FOO 47 value: from-task5 48 - name: task6 49 image: alpine:3.15.4 50 command: ["/bin/sh"] 51 args: ["-c", "echo hello-$FOO && exit 1"] 52 env: 53 - name: FOO 54 value: from-task6 55 56 - name: action-succeeded 57 containers: 58 - name: task7 59 image: alpine:3.15.4 60 command: ["/bin/sh"] 61 args: ["-c", "echo hello-$FOO && echo bye-$FOO"] 62 env: 63 - name: FOO 64 value: from-task7 65 - name: task8 66 image: alpine:3.15.4 67 command: ["/bin/sh"] 68 args: ["-c", "echo hello-$FOO && echo bye-$FOO"] 69 env: 70 - name: FOO 71 value: from-task8 72 73 - name: action-with-local-built-img 74 containers: 75 - name: local-img-task1 76 image: localtaks 77 env: 78 - name: FOO 79 value: from-local-img