github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/cloudbuild/testdata/steps-script.yaml.golden (about)

     1  kind: pipeline
     2  spec:
     3    options:
     4      envs:
     5        BRANCH_NAME: <+trigger.branch>
     6        BUILD_ID: <+pipeline.sequenceId>
     7        COMMIT_SHA: <+trigger.commitSha>
     8        PROJECT_ID: <+project.name>
     9        PROJECT_NUMBER: <+pipeline.sequenceId>
    10        REPO_NAME: <+trigger.payload.repository.name>
    11        REVISION_ID: <+trigger.commitSha>
    12        SHORT_SHA: <+codebase.shortCommitSha>
    13        TAG_NAME: <+trigger.commitSha>
    14    stages:
    15    - desc: converted from google cloud build
    16      name: pipeline
    17      spec:
    18        platform:
    19          arch: amd64
    20          os: linux
    21        runtime:
    22          spec: {}
    23          type: cloud
    24        steps:
    25        - name: bash
    26          spec:
    27            image: bash
    28            mount:
    29            - name: dockersock
    30              path: /var/run/docker.sock
    31            run: |
    32              #!/usr/bin/env bash
    33              echo "Hello World"
    34          type: script
    35        - name: ubuntu
    36          spec:
    37            image: ubuntu
    38            mount:
    39            - name: dockersock
    40              path: /var/run/docker.sock
    41            run: echo hello
    42          type: script
    43        - name: python
    44          spec:
    45            image: python
    46            mount:
    47            - name: dockersock
    48              path: /var/run/docker.sock
    49            run: |-
    50              #!/usr/bin/env python
    51              print('hello from python')
    52          type: script
    53        volumes:
    54        - name: dockersock
    55          spec:
    56            path: /var/run/docker.sock
    57          type: host
    58      type: ci
    59  version: 1