github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/yaml/testdata/pipeline.yaml (about)

     1  version: "1"
     2  
     3  pipeline:
     4  
     5    name: My Deployment Pipeline
     6    identifier: myPipeline1
     7    accountIdentifier: ""
     8    projectIdentifier: ""
     9    orgIdentifier: ""
    10  
    11    properties:
    12      ci:
    13        codebase:
    14          repoName: mycode.git # accept w/o git at the end
    15          connectorRef: account.gitconnector
    16          build: <+input> # build: type branch|tag spec: branch: <name>
    17    stages:
    18      - stage:
    19          identifier: stage1
    20          name: stage1
    21          type: CI
    22          description: Build artifacts off master and upload to artifacts repo
    23          spec:
    24            infrastructure:
    25              type: Kubernetes-direct
    26              spec:
    27                connectorRef: cidelegate
    28                namespace: harness-delegate
    29            cloneCodebase: true # default is true 
    30            sharedPaths: 
    31              - myPath
    32              - myPath2
    33            variables: 
    34              - name: REPLACE_USERNAME_HERE
    35                type: Secret
    36                value: REPLACE_USERNAME_HERE
    37              - name: param1
    38                type: Text
    39                value: value1
    40        
    41            serviceDependencies: 
    42              - identifier: database
    43                name: database
    44                type: Service
    45                spec:
    46                  envVariables: #Optional - A set of environment variables for the container, on top of what was provided in the custom vars
    47                    kube_context: myContext ${mySecret}
    48                  entrypoint:  # (optional)
    49                    - "mysqld"
    50                  args:  # (optional) - marks the flags for the entry point
    51                    - "--character-set-server=utf8mb4"
    52                  connectorRef: "np-quotecenter" #(optional)
    53                  image: "us.gcr.io/platform-205701/mysql:12" #latest if version not provided
    54                  resources:
    55                    limits:
    56                      cpu: 250m
    57            execution: 
    58              steps:
    59                - step:
    60                    identifier: buildcommand2
    61                    name: stepName
    62                    description: myDescription
    63                    type: Run
    64                    timeout: 90s
    65                    skipCondition: someExpression # some JEXL expression
    66                    spec:
    67                      image: "us.gcr.io/platform-205701/mysql:12" 
    68                      connectorRef: gcrConnector
    69                      command: some command or commands
    70                      reports:
    71                          type: JUnit
    72                          spec:  
    73                            paths:
    74                              - rspec.xml
    75                      envVariables:
    76                        key: value1
    77                        key2: val2   
    78                      outputVariables: 
    79                        - var1
    80                        - var2
    81                      resources:
    82                        limits:
    83                          memory: 64Mi
    84                          cpu: 250m