github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/cloudbuild/testdata/steps-volumes.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: ubuntu
    26          spec:
    27            args:
    28            - -c
    29            - |
    30              echo "Hello, world!" > /persistent_volume/file
    31            entrypoint: bash
    32            image: ubuntu
    33            mount:
    34            - name: dockersock
    35              path: /var/run/docker.sock
    36            - name: vol1
    37              path: /persistent_volume
    38          type: script
    39        - name: ubuntu1
    40          spec:
    41            args:
    42            - cat
    43            - /persistent_volume/file
    44            image: ubuntu
    45            mount:
    46            - name: dockersock
    47              path: /var/run/docker.sock
    48            - name: vol1
    49              path: /persistent_volume
    50          type: script
    51        volumes:
    52        - name: vol1
    53          spec: {}
    54          type: temp
    55        - name: dockersock
    56          spec:
    57            path: /var/run/docker.sock
    58          type: host
    59      type: ci
    60  version: 1