@@ -30,15 +30,15 @@ Let’s get started. CircleCI provides a powerful experience because we provide
30
30
``` yaml
31
31
version : 2.0
32
32
jobs :
33
- build :
34
- docker :
35
- - image : alpine:3.7
36
- steps :
37
- - run :
38
- name : The First Step
39
- command : |
40
- echo 'Hello World!'
41
- echo 'This is the delivery pipeline'
33
+ build :
34
+ docker :
35
+ - image : alpine:3.7
36
+ steps :
37
+ - run :
38
+ name : The First Step
39
+ command : |
40
+ echo 'Hello World!'
41
+ echo 'This is the delivery pipeline'
42
42
` ` `
43
43
44
44
Check-in the config and see it run. You can see the output of the job in the CircleCI app.
@@ -66,21 +66,21 @@ That was nice but let’s get real. Delivery graphs start with code. In this e
66
66
` ` ` yaml
67
67
version: 2.0
68
68
jobs:
69
- build:
70
- docker:
71
- - image: alpine:3.7
72
- steps:
73
- - checkout
74
- - run:
75
- name: The First Step
76
- command: |
77
- echo 'Hello World!'
78
- echo 'This is the delivery pipeline'
79
- - run:
80
- name: Code Has Arrived
81
- command: |
82
- ls -al
83
- echo '^^^That should look familiar^^^'
69
+ build:
70
+ docker:
71
+ - image: alpine:3.7
72
+ steps:
73
+ - checkout
74
+ - run:
75
+ name: The First Step
76
+ command: |
77
+ echo 'Hello World!'
78
+ echo 'This is the delivery pipeline'
79
+ - run:
80
+ name: Code Has Arrived
81
+ command: |
82
+ ls -al
83
+ echo '^^^That should look familiar^^^'
84
84
` ` `
85
85
86
86
# ## Learnings
@@ -100,26 +100,26 @@ Every code base and project is different. That’s okay. We like diversity. T
100
100
` ` ` yaml
101
101
version: 2.0
102
102
jobs:
103
- build:
104
- # pre-built images: https://circleci.com/docs/2.0/circleci-images/
105
- docker:
106
- - image: circleci/node:10-browsers
107
- steps:
108
- - checkout
109
- - run:
110
- name: The First Step
111
- command: |
112
- echo 'Hello World!'
113
- echo 'This is the delivery pipeline'
114
- - run:
115
- name: Code Has Arrived
116
- command: |
117
- ls -al
118
- echo '^^^That should look familiar^^^'
119
- - run:
120
- name: Running in a Unique Container
121
- command: |
122
- node -v
103
+ build:
104
+ # pre-built images: https://circleci.com/docs/2.0/circleci-images/
105
+ docker:
106
+ - image: circleci/node:10-browsers
107
+ steps:
108
+ - checkout
109
+ - run:
110
+ name: The First Step
111
+ command: |
112
+ echo 'Hello World!'
113
+ echo 'This is the delivery pipeline'
114
+ - run:
115
+ name: Code Has Arrived
116
+ command: |
117
+ ls -al
118
+ echo '^^^That should look familiar^^^'
119
+ - run:
120
+ name: Running in a Unique Container
121
+ command: |
122
+ node -v
123
123
` ` `
124
124
125
125
We also added a small `run` block that demonstrates we are running in a node container.
@@ -144,41 +144,41 @@ All of the job names are arbitrary. This allows you to create workflows as comp
144
144
` ` ` yaml
145
145
version: 2.0
146
146
jobs:
147
- Hello-World:
148
- docker:
149
- - image: alpine:3.7
150
- steps:
151
- - run:
152
- name: Hello World
153
- command: |
154
- echo 'Hello World!'
155
- echo 'This is the delivery pipeline'
156
- I-Have-Code:
157
- docker:
158
- - image: alpine:3.7
159
- steps:
160
- - checkout
161
- - run:
162
- name: Code Has Arrived
163
- command: |
164
- ls -al
165
- echo '^^^That should look familiar^^^'
166
- Run-With-Node:
167
- docker:
168
- - image: circleci/node:10-browsers
169
- steps:
170
- - run:
171
- name: Running In A Container With Node
172
- command: |
173
- node -v
174
- Now-Complete:
175
- docker:
176
- - image: alpine:3.7
177
- steps:
178
- - run:
179
- name: Approval Complete
180
- command: |
181
- echo 'Do work once the approval has completed'
147
+ Hello-World:
148
+ docker:
149
+ - image: alpine:3.7
150
+ steps:
151
+ - run:
152
+ name: Hello World
153
+ command: |
154
+ echo 'Hello World!'
155
+ echo 'This is the delivery pipeline'
156
+ I-Have-Code:
157
+ docker:
158
+ - image: alpine:3.7
159
+ steps:
160
+ - checkout
161
+ - run:
162
+ name: Code Has Arrived
163
+ command: |
164
+ ls -al
165
+ echo '^^^That should look familiar^^^'
166
+ Run-With-Node:
167
+ docker:
168
+ - image: circleci/node:10-browsers
169
+ steps:
170
+ - run:
171
+ name: Running In A Container With Node
172
+ command: |
173
+ node -v
174
+ Now-Complete:
175
+ docker:
176
+ - image: alpine:3.7
177
+ steps:
178
+ - run:
179
+ name: Approval Complete
180
+ command: |
181
+ echo 'Do work once the approval has completed'
182
182
183
183
workflows:
184
184
version: 2
0 commit comments