apiVersion: skaffold/v4beta7
kind: Config
build:
  tagPolicy:
    envTemplate:
      template: "_IMAGE_TAG_POLICY"
  artifacts:
    - image: quartz-manager-standalone
      context: ./
profiles:
  - name: dev
    deploy:
      helm:
        releases:
          - name: quartzmanager-standalone
            createNamespace: true
            namespace: quartzmanager-dev
            chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
#            valuesFiles:
#              - helm/envs/dev/values.yaml
            setValueTemplates:
              image.tag: "_IMAGE_TAG_POLICY"
  - name: staging
    deploy:
      helm:
        releases:
            - name: quartzmanager-standalone
              createNamespace: true
              namespace: quartzmanager-staging
              chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
          #            valuesFiles:
          #              - helm/envs/dev/values.yaml
              setValueTemplates:
                image.tag: "_IMAGE_TAG_POLICY"
  - name: prod
    deploy:
      helm:
        releases:
          - name: quartzmanager-standalone
            createNamespace: true
            namespace: quartzmanager-prod
            chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
            #            valuesFiles:
            #              - helm/envs/dev/values.yaml
            setValueTemplates:
              image.tag: "_IMAGE_TAG_POLICY"
