Skip to content

Commit 831caee

Browse files
committed
ubuntu latest in gha
1 parent 2911cb8 commit 831caee

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed

src/content/11/en/part11b.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ on:
123123

124124
jobs:
125125
hello_world_job:
126-
runs-on: ubuntu-20.04
126+
runs-on: ubuntu-latest
127127
steps:
128128
- name: Say hello
129129
run: |
@@ -200,7 +200,7 @@ Before we can run a command to lint the code, we have to perform a couple of act
200200
201201
#### Setting up the environment
202202
203-
Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-20.04</code> virtual environment because this is the version of Ubuntu we're going to be running in production.
203+
Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-latest</code> virtual environment because this is the version of Ubuntu we're going to be running in production.
204204
205205
It is important to replicate the same environment in CI as in production as closely as possible, to avoid situations where the same code works differently in CI and production, which would effectively defeat the purpose of using CI.
206206
@@ -218,7 +218,7 @@ on:
218218

219219
jobs:
220220
simple_deployment_pipeline: # highlight-line
221-
runs-on: ubuntu-20.04 # highlight-line
221+
runs-on: ubuntu-latest # highlight-line
222222
steps: # highlight-line
223223
- uses: actions/checkout@v4 # highlight-line
224224
```
@@ -234,7 +234,7 @@ Secondly, as the application is written in JavaScript, Node.js must be set up to
234234

235235
jobs:
236236
simple_deployment_pipeline:
237-
runs-on: ubuntu-20.04
237+
runs-on: ubuntu-latest
238238
steps:
239239
- uses: actions/checkout@v4
240240
- uses: actions/setup-node@v4 # highlight-line
@@ -250,7 +250,7 @@ Lastly, the dependencies of the application must be installed. Just like on your
250250
```yml
251251
jobs:
252252
simple_deployment_pipeline:
253-
runs-on: ubuntu-20.04
253+
runs-on: ubuntu-latest
254254
steps:
255255
- uses: actions/checkout@v4
256256
- uses: actions/setup-node@v4
@@ -269,7 +269,7 @@ After the environment has been set up we can run all the scripts from <code>pack
269269
```yml
270270
jobs:
271271
simple_deployment_pipeline:
272-
runs-on: ubuntu-20.04
272+
runs-on: ubuntu-latest
273273
steps:
274274
- uses: actions/checkout@v4
275275
- uses: actions/setup-node@v4

src/content/11/en/part11d.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ on:
209209

210210
jobs:
211211
simple_deployment_pipeline:
212-
runs-on: ubuntu-20.04
212+
runs-on: ubuntu-latest
213213
steps:
214214
// steps here
215215
tag_release:
216216
needs: [simple_deployment_pipeline]
217-
runs-on: ubuntu-20.04
217+
runs-on: ubuntu-latest
218218
steps:
219219
// steps here
220220
```
@@ -255,7 +255,7 @@ on:
255255

256256
jobs:
257257
a_test_job:
258-
runs-on: ubuntu-20.04
258+
runs-on: ubuntu-latest
259259
steps:
260260
- uses: actions/checkout@v4
261261
- name: github context

src/content/11/es/part11b.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ on:
123123

124124
jobs:
125125
hello_world_job:
126-
runs-on: ubuntu-20.04
126+
runs-on: ubuntu-latest
127127
steps:
128128
- name: Say hello
129129
run: |
@@ -200,7 +200,7 @@ Before we can run a command to lint the code, we have to perform a couple of act
200200
201201
#### Setting up the environment
202202
203-
Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-20.04</code> virtual environment because this is the version of Ubuntu we're going to be running in production.
203+
Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-latest</code> virtual environment because this is the version of Ubuntu we're going to be running in production.
204204
205205
It is important to replicate the same environment in CI as in production as closely as possible, to avoid situations where the same code works differently in CI and production, which would effectively defeat the purpose of using CI.
206206
@@ -218,7 +218,7 @@ on:
218218

219219
jobs:
220220
simple_deployment_pipeline: # highlight-line
221-
runs-on: ubuntu-20.04 # highlight-line
221+
runs-on: ubuntu-latest # highlight-line
222222
steps: # highlight-line
223223
- uses: actions/checkout@v4 # highlight-line
224224
```
@@ -234,7 +234,7 @@ Secondly, as the application is written in JavaScript, Node.js must be set up to
234234

235235
jobs:
236236
simple_deployment_pipeline:
237-
runs-on: ubuntu-20.04
237+
runs-on: ubuntu-latest
238238
steps:
239239
- uses: actions/checkout@v4
240240
- uses: actions/setup-node@v4 # highlight-line
@@ -250,7 +250,7 @@ Lastly, the dependencies of the application must be installed. Just like on your
250250
```yml
251251
jobs:
252252
simple_deployment_pipeline:
253-
runs-on: ubuntu-20.04
253+
runs-on: ubuntu-latest
254254
steps:
255255
- uses: actions/checkout@v4
256256
- uses: actions/setup-node@v4
@@ -269,7 +269,7 @@ After the environment has been set up we can run all the scripts from <code>pack
269269
```yml
270270
jobs:
271271
simple_deployment_pipeline:
272-
runs-on: ubuntu-20.04
272+
runs-on: ubuntu-latest
273273
steps:
274274
- uses: actions/checkout@v4
275275
- uses: actions/setup-node@v4

src/content/11/es/part11d.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ on:
209209

210210
jobs:
211211
simple_deployment_pipeline:
212-
runs-on: ubuntu-20.04
212+
runs-on: ubuntu-latest
213213
steps:
214214
// steps here
215215
tag_release:
216216
needs: [simple_deployment_pipeline]
217-
runs-on: ubuntu-20.04
217+
runs-on: ubuntu-latest
218218
steps:
219219
// steps here
220220
```
@@ -255,7 +255,7 @@ on:
255255

256256
jobs:
257257
a_test_job:
258-
runs-on: ubuntu-20.04
258+
runs-on: ubuntu-latest
259259
steps:
260260
- uses: actions/checkout@v4
261261
- name: github context

src/content/11/zh/part11b.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ on:
170170

171171
jobs:
172172
hello_world_job:
173-
runs-on: ubuntu-20.04
173+
runs-on: ubuntu-latest
174174
steps:
175175
- name: Say hello
176176
run: |
@@ -266,8 +266,8 @@ jobs:
266266
267267
#### Setting up the environment
268268
269-
<!-- Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-20.04</code> virtual environment because this is the version of Ubuntu we're going to be running in production.-->
270-
设置环境是配置管道时的一项重要任务。我们将使用一个<code>ubuntu-20.04</code>虚拟环境,因为这是我们将在生产中运行的Ubuntu版本。
269+
<!-- Setting up the environment is an important task while configuring a pipeline. We're going to use an <code>ubuntu-latest</code> virtual environment because this is the version of Ubuntu we're going to be running in production.-->
270+
设置环境是配置管道时的一项重要任务。我们将使用一个<code>ubuntu-latest</code>虚拟环境,因为这是我们将在生产中运行的Ubuntu版本。
271271
272272
<!-- It is important to replicate the same environment in CI as in production as closely as possible, to avoid situations where the same code works differently in CI and production, which would effectively defeat the purpose of using CI.-->
273273
在CI中尽可能地复制与生产中相同的环境是很重要的,以避免相同的代码在CI和生产中工作不同的情况,这将有效地挫败使用CI的目的。
@@ -288,7 +288,7 @@ on:
288288

289289
jobs:
290290
simple_deployment_pipeline: // highlight-line
291-
runs-on: ubuntu-20.04 // highlight-line
291+
runs-on: ubuntu-latest // highlight-line
292292
steps: // highlight-line
293293
- uses: actions/checkout@v4 // highlight-line
294294
```
@@ -307,7 +307,7 @@ jobs:
307307

308308
jobs:
309309
simple_deployment_pipeline:
310-
runs-on: ubuntu-20.04
310+
runs-on: ubuntu-latest
311311
steps:
312312
- uses: actions/checkout@v4
313313
- uses: actions/setup-node@v4 // highlight-line
@@ -325,7 +325,7 @@ jobs:
325325
```js
326326
jobs:
327327
simple_deployment_pipeline:
328-
runs-on: ubuntu-20.04
328+
runs-on: ubuntu-latest
329329
steps:
330330
- uses: actions/checkout@v4
331331
- uses: actions/setup-node@v2
@@ -346,7 +346,7 @@ jobs:
346346
```js
347347
jobs:
348348
simple_deployment_pipeline:
349-
runs-on: ubuntu-20.04
349+
runs-on: ubuntu-latest
350350
steps:
351351
- uses: actions/checkout@v4
352352
- uses: actions/setup-node@v2

src/content/11/zh/part11d.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ on:
257257

258258
jobs:
259259
simple_deployment_pipeline:
260-
runs-on: ubuntu-20.04
260+
runs-on: ubuntu-latest
261261
steps:
262262
// steps here
263263
tag_release:
264264
needs: [simple_deployment_pipeline]
265-
runs-on: ubuntu-20.04
265+
runs-on: ubuntu-latest
266266
steps:
267267
// steps here
268268
```
@@ -310,7 +310,7 @@ on:
310310

311311
jobs:
312312
a_test_job:
313-
runs-on: ubuntu-20.04
313+
runs-on: ubuntu-latest
314314
steps:
315315
- uses: actions/checkout@v4
316316
- name: github context

0 commit comments

Comments
 (0)