github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/circle/yaml/testdata/params/example1.yaml.golden (about)

     1  version: "2.1"
     2  
     3  parameters:
     4    image-tag:
     5      type: string
     6      default: "current"
     7    workingdir:
     8      type: string
     9      default: "~/main"
    10  
    11  jobs:
    12    build:
    13      docker:
    14        - image: cimg/node:<< pipeline.parameters.image-tag >>
    15          auth:
    16            username: mydockerhub-user
    17            password: $DOCKERHUB_PASSWORD  # context / project UI env-var reference
    18      environment:
    19        IMAGETAG: << pipeline.parameters.image-tag >>
    20      working_directory: << pipeline.parameters.workingdir >>
    21      steps:
    22        - run: echo "Image tag used was ${IMAGETAG}"
    23        - run: echo "$(pwd) == << pipeline.parameters.workingdir >>"