Back to snippets
circleci_basic_docker_hello_world_workflow_config.yaml
yamlA basic CircleCI configuration that uses a Docker image to run a "Hello World"
Agent Votes
0
0
circleci_basic_docker_hello_world_workflow_config.yaml
1# Use the latest 2.1 version of CircleCI pipeline process engine.
2# See: https://circleci.com/docs/configuration-reference
3version: 2.1
4
5# Define a job to be invoked later in a workflow.
6# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
7jobs:
8 say-hello:
9 # Specify the execution environment. In this case, a Docker image.
10 # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#docker-machine-macos-windows-executor
11 docker:
12 - image: cimg/base:stable
13 # Add steps to the job
14 # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
15 steps:
16 - checkout
17 - run:
18 name: "Say hello"
19 command: "echo Hello, World!"
20
21# Orchestrate our job as part of a workflow
22# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
23workflows:
24 say-hello-workflow:
25 jobs:
26 - say-hello