Skip to content

Commit 6c20486

Browse files
authored
Update config.yml
1 parent d3b25a4 commit 6c20486

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

.circleci/config.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/configuration-reference
31
version: 2.1
42

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
73
jobs:
8-
say-hello:
9-
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
10-
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
4+
build:
115
docker:
12-
# Specify the version you desire here
13-
# See: https://circleci.com/developer/images/image/cimg/base
146
- image: cimg/base:current
7+
working_directory: ~/Tools
8+
steps:
9+
- checkout
10+
- run:
11+
name: "Build step"
12+
command: echo "Building project..."
1513

16-
# Add steps to the job
17-
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
14+
deploy:
15+
docker:
16+
- image: cimg/base:current
17+
working_directory: ~/Tools
1818
steps:
19-
# Checkout the code as the first step.
2019
- checkout
2120
- run:
22-
name: "Say hello"
23-
command: "echo Hello, World!"
21+
name: "Deploy step"
22+
command: echo "Deploying project..."
2423

25-
# Orchestrate jobs using workflows
26-
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
2724
workflows:
28-
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
29-
# Inside the workflow, you define the jobs you want to run.
25+
build-and-deploy:
3026
jobs:
31-
- say-hello
27+
- build
28+
- deploy:
29+
requires:
30+
- build
31+
filters:
32+
branches:
33+
only: main

0 commit comments

Comments
 (0)