harness_deploy - robjcook/sync GitHub Wiki

pipeline:
  name: Deploy to Environment
  identifier: deploy_to_env
  projectIdentifier: your_project_id
  orgIdentifier: your_org_id
  tags: {}

  variables:
    - name: environment
      type: String
      description: "Target environment to deploy to"
      value: <+input>
    - name: version
      type: String
      description: "Version of the artifact to deploy (e.g., 1.0.42)"
      value: <+input>

  stages:
    - stage:
        name: Deploy
        identifier: deploy_stage
        type: Deployment
        spec:
          service:
            serviceRef: your_service
          environment:
            environmentRef: <+pipeline.variables.environment>
            deployToAll: true
          infrastructure:
            infrastructureDefinition:
              type: KubernetesDirect
              spec:
                connectorRef: your_k8s_connector
                namespace: <+pipeline.variables.environment>
          execution:
            steps:
              - step:
                  name: Helm Deploy
                  identifier: helm_deploy
                  type: HelmDeploy
                  spec:
                    chart:
                      store:
                        type: Git
                        spec:
                          connectorRef: your_git_connector
                          repoName: your-helm-repo
                          chartPath: charts/myapp
                          branch: main
                      chartName: myapp
                    version: <+pipeline.variables.version>
                    valuesYaml: |
                      image:
                        repository: myregistry/myapp
                        tag: <+pipeline.variables.version>
⚠️ **GitHub.com Fallback** ⚠️