github.com/GoogleContainerTools/skaffold@v1.39.18/examples/profile-patches/skaffold.yaml (about)

     1  apiVersion: skaffold/v2beta28
     2  kind: Config
     3  build:
     4    # only build and deploy "base-service" on main profile
     5    artifacts:
     6    - image: skaffold-base
     7      context: base-service
     8  deploy:
     9    kubectl:
    10      manifests:
    11        - 'base-service/*.yaml'
    12  
    13  profiles:
    14    - name: hello
    15      patches:
    16        - op: add
    17          path: /build/artifacts/1
    18          value:
    19            image: skaffold-hello
    20            context: hello-service
    21        - op: add
    22          path: /deploy/kubectl/manifests/1
    23          value: 'hello-service/*.yaml'
    24  
    25    - name: world
    26      patches:
    27        - op: add
    28          path: /build/artifacts/1
    29          value:
    30            image: skaffold-world
    31            context: world-service
    32        - op: add
    33          path: /deploy/kubectl/manifests/1
    34          value: 'world-service/*.yaml'