github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/circle/yaml/testdata/tutorial/example3.yaml (about) 1 # https://circleci.com/docs/config-intro/#part-3-using-different-environments-and-creating-workflows 2 3 version: 2.1 4 jobs: 5 # running commands on a basic image 6 Hello-World: 7 docker: 8 - image: cimg/base:2021.04 9 auth: 10 username: mydockerhub-user 11 password: $DOCKERHUB_PASSWORD # context / project UI env-var reference 12 steps: 13 - run: 14 name: Saying Hello 15 command: | 16 echo 'Hello World!' 17 echo 'This is the delivery pipeline' 18 # fetching code from the repo 19 Fetch-Code: 20 docker: 21 - image: cimg/base:2021.04 22 auth: 23 username: mydockerhub-user 24 password: $DOCKERHUB_PASSWORD # context / project UI env-var reference 25 steps: 26 - checkout 27 - run: 28 name: Getting the Code 29 command: | 30 ls -al 31 echo '^^^Your repo files^^^' 32 # running a node container 33 Using-Node: 34 docker: 35 - image: cimg/node:17.2 36 auth: 37 username: mydockerhub-user 38 password: $DOCKERHUB_PASSWORD # context / project UI env-var reference 39 steps: 40 - run: 41 name: Running the Node Container 42 command: | 43 node -v 44 workflows: 45 Example-Workflow: 46 jobs: 47 - Hello-World 48 - Fetch-Code: 49 requires: 50 - Hello-World 51 - Using-Node: 52 requires: 53 - Fetch-Code