github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/cloudbuild/testdata/steps-dir.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: go
    26          spec:
    27            args:
    28            - install
    29            - .
    30            envs:
    31              PROJECT_ROOT: hello
    32            image: gcr.io/cloud-builders/go
    33            mount:
    34            - name: dockersock
    35              path: /var/run/docker.sock
    36          type: script
    37        volumes:
    38        - name: dockersock
    39          spec:
    40            path: /var/run/docker.sock
    41          type: host
    42      type: ci
    43  version: 1