github.com/GoogleContainerTools/skaffold/v2@v2.13.2/examples/profiles/skaffold.yaml (about)

     1  apiVersion: skaffold/v4beta11
     2  kind: Config
     3  build:
     4    # only build and deploy "world-service" on main profile
     5    artifacts:
     6    - image: skaffold-world
     7      context: world-service
     8  manifests:
     9    rawYaml:
    10      - 'world-service/*.yaml'
    11  
    12  profiles:
    13    - name: minikube-profile
    14      # automatically activate this profile when current context is "minikube"
    15      activation:
    16        - kubeContext: minikube
    17      build:
    18        # only build and deploy "hello-service" on minikube profile
    19        artifacts:
    20          - image: skaffold-hello
    21            context: hello-service
    22      manifests:
    23        rawYaml:
    24          - 'hello-service/*.yaml'
    25  
    26    - name: staging-profile
    27      build:
    28        # build and deploy both services on "staging"
    29        artifacts:
    30          - image: skaffold-hello
    31            context: hello-service
    32          - image: skaffold-world
    33            context: world-service
    34      manifests:
    35        rawYaml:
    36          - '**/*.yaml'
    37      deploy:
    38        # use context "staging" for staging-profile
    39        kubeContext: staging