diff --git a/docs/ja/user-guide/commands.md b/docs/ja/user-guide/commands.md index 177cc8e0..ddbb8fa9 100644 --- a/docs/ja/user-guide/commands.md +++ b/docs/ja/user-guide/commands.md @@ -51,7 +51,7 @@ Screwdriver のコマンドは、ユーザが [screwdriver.yaml](./configuration jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: sd-cmd exec awscli/install@1.0 -i mySecretID -s secretAccessKey -r us-west-2 ``` @@ -142,7 +142,7 @@ habitat: ```yaml shared: - image: node:8 + image: node:lts jobs: main: requires: [~pr, ~commit] diff --git a/docs/ja/user-guide/configuration/annotations.md b/docs/ja/user-guide/configuration/annotations.md index d9d15ca4..89f183b1 100644 --- a/docs/ja/user-guide/configuration/annotations.md +++ b/docs/ja/user-guide/configuration/annotations.md @@ -24,7 +24,7 @@ shared: annotations: foo: &bar # アンカーを作成 requires: [~pr, ~commit] - image: node:8 + image: node:lts jobs: main: diff --git a/docs/ja/user-guide/configuration/build-cache.md b/docs/ja/user-guide/configuration/build-cache.md index 6ab62a1b..08db7e66 100644 --- a/docs/ja/user-guide/configuration/build-cache.md +++ b/docs/ja/user-guide/configuration/build-cache.md @@ -37,12 +37,12 @@ cache: jobs: setnpmcache: - image: node:6 + image: node:lts steps: - install: npm install requires: [~commit, ~pr] usenpmcache: - image: node:6 + image: node:lts steps: - ls: ls - install: npm install @@ -54,7 +54,7 @@ jobs: - install: git clone https://github.com/gradle/gradle-site-plugin.git && cd gradle-site-plugin && ./gradlew build requires: [~commit, ~pr] usejobcache: - image: node:6 + image: node:lts steps: - ls-tmp: ls /tmp - echo: echo hi > /tmp/test @@ -79,18 +79,18 @@ cache: jobs: setnpmcache: - image: node:12 + image: node:lts steps: - install: npm install requires: [~commit, ~pr] usenpmcache: - image: node:12 + image: node:lts steps: - ls: ls - install: npm install requires: [setnpmcache] no-usenpmcache: - image: node:12 + image: node:lts steps: - ls: ls - run-command: echo 'run command which not uses npmcache.' diff --git a/docs/ja/user-guide/configuration/code-coverage.md b/docs/ja/user-guide/configuration/code-coverage.md index c754ac12..a4a771e5 100644 --- a/docs/ja/user-guide/configuration/code-coverage.md +++ b/docs/ja/user-guide/configuration/code-coverage.md @@ -52,7 +52,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:14 + image: node:lts steps: - install: npm install - test: npm test @@ -75,7 +75,7 @@ jobs: jobs: main: requires: [~pr, ~commit] - image: node:14 + image: node:lts steps: - install: npm install - test: npm test diff --git a/docs/ja/user-guide/configuration/externalConfig.md b/docs/ja/user-guide/configuration/externalConfig.md index b9646be8..8d1fda17 100644 --- a/docs/ja/user-guide/configuration/externalConfig.md +++ b/docs/ja/user-guide/configuration/externalConfig.md @@ -39,7 +39,7 @@ childPipelines: jobs: main: - image: node:8 + image: node:lts steps: - install: npm install - publish: npm publish diff --git a/docs/ja/user-guide/configuration/index.md b/docs/ja/user-guide/configuration/index.md index 013eabec..5312e15e 100644 --- a/docs/ja/user-guide/configuration/index.md +++ b/docs/ja/user-guide/configuration/index.md @@ -40,7 +40,7 @@ toc: main: requires: [~pr, ~commit, ~sd@123:main] sourcePaths: ["src/app/", "screwdriver.yaml"] - image: node:6 + image: node:lts steps: - init: npm install - test: npm test @@ -53,7 +53,7 @@ toc: - teardown-save-results: cp ./results $SD_ARTIFACTS_DIR deploy-west: requires: publish - image: node:6 + image: node:lts environment: DEPLOY_ENV: west steps: @@ -61,7 +61,7 @@ toc: - deploy: npm deploy deploy-east: requires: publish - image: node:6 + image: node:lts environment: DEPLOY_ENV: east steps: @@ -69,7 +69,7 @@ toc: - deploy: npm deploy finished: requires: [deploy-west, deploy-east] - image: node:6 + image: node:lts steps: - echo: echo done ... diff --git a/docs/ja/user-guide/configuration/jobconfiguration.md b/docs/ja/user-guide/configuration/jobconfiguration.md index 69254e03..07b19ff6 100644 --- a/docs/ja/user-guide/configuration/jobconfiguration.md +++ b/docs/ja/user-guide/configuration/jobconfiguration.md @@ -29,7 +29,7 @@ toc: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - test: npm test @@ -70,7 +70,7 @@ jobs: jobs: main: requires: [~pr, ~commit] - image: node:8 + image: node:lts environment: USER_SHELL_BIN: bash steps: @@ -104,7 +104,7 @@ teardownステップは、ビルドステップが完了や中断または失敗 ``` shared: - image: node:8 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -113,7 +113,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts main2: requires: [main] steps: @@ -126,14 +126,14 @@ jobs: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - pretest: npm lint - test: npm test main2: requires: [main] - image: node:8 + image: node:lts steps: - test: echo Skipping test diff --git a/docs/ja/user-guide/configuration/parameters.md b/docs/ja/user-guide/configuration/parameters.md index 00a3679b..1d8c300e 100644 --- a/docs/ja/user-guide/configuration/parameters.md +++ b/docs/ja/user-guide/configuration/parameters.md @@ -65,7 +65,7 @@ parameters: screwdriver.yamlの全容は以下の通り: ```yaml shared: - image: node:8 + image: node:lts parameters: skip_test: ["no", "yes"] diff --git a/docs/ja/user-guide/configuration/sourcePaths.md b/docs/ja/user-guide/configuration/sourcePaths.md index 365b35f1..1dfc314d 100644 --- a/docs/ja/user-guide/configuration/sourcePaths.md +++ b/docs/ja/user-guide/configuration/sourcePaths.md @@ -41,7 +41,7 @@ toc: ```yaml jobs: main: - image: node:6 + image: node:lts requires: [~pr, ~commit] sourcePaths: ["src/app/", "screwdriver.yaml"] steps: @@ -65,7 +65,7 @@ Screwdriverはビルドをトリガーしたソースパスを環境変数`SD_SO ```yaml jobs: main: - image: node:6 + image: node:lts requires: [~pr, ~commit] sourcePaths: ["src/app/", "screwdriver.yaml", "!src/app/package.json"] steps: diff --git a/docs/ja/user-guide/configuration/workflow.md b/docs/ja/user-guide/configuration/workflow.md index 3524d793..b5923aea 100644 --- a/docs/ja/user-guide/configuration/workflow.md +++ b/docs/ja/user-guide/configuration/workflow.md @@ -62,13 +62,13 @@ Screwdriver は全てのパイプラインに対し、SCM のイベントに対 ``` jobs: main: - image: node:14 + image: node:lts requires: [~pr, ~commit] steps: - echo: echo hi second: - image: node:14 + image: node:lts requires: [main] steps: - echo: echo bye @@ -90,7 +90,7 @@ jobs: ``` shared: - image: node:14 + image: node:lts jobs: main: @@ -120,7 +120,7 @@ Joinに似ていますが、_OR_は`requires`のジョブのいずれかが成 ``` shared: - image: node:6 + image: node:lts steps: - greet: echo hello jobs: @@ -142,7 +142,7 @@ jobs: 以下の例では、`staging`ブランチに対してコミットされると、`staging-commit`ジョブと `all-commit`ジョブが両方トリガーされます。また、`default`ブランチに対してコミットされると、` main`ジョブと `all-commit`ジョブが両方トリガーされます。プルリクエストが`staging`ブランチに対してオープンされると、` staging-pr`ジョブがトリガーされます。 ``` shared: - image: node:8 + image: node:lts jobs: main: @@ -177,7 +177,7 @@ _注意: ブランチに対するPRのワークフローは、そのブランチ ``` shared: - image: node:12 + image: node:lts jobs: all-tag-and-release: @@ -205,7 +205,7 @@ jobs: ``` jobs: main: - image: node:14 + image: node:lts requires: [~pr, ~commit, ~sd@456:publish] steps: - echo: echo hi @@ -225,7 +225,7 @@ Pipeline 3 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -241,7 +241,7 @@ Pipeline 2 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -253,7 +253,7 @@ Pipeline 4 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -284,7 +284,7 @@ jobs: ``` shared: - image: node:14 + image: node:lts jobs: job1: requires: [~commit, ~pr] @@ -314,7 +314,7 @@ jobs: ``` shared: - image: node:14 + image: node:lts jobs: job1: freezeWindows: ['* * ? 3 *'] @@ -343,7 +343,7 @@ jobs: ``` shared: - image: node:8 + image: node:lts jobs: detached: @@ -361,7 +361,7 @@ jobs: ``` shared: - image: node:8 + image: node:lts subscribe: scmUrls: - git@github.com:supra08/functional-workflow.git: ['~commit', '~pr'] diff --git a/docs/ja/user-guide/templates.md b/docs/ja/user-guide/templates.md index ac032bc9..cb85f076 100644 --- a/docs/ja/user-guide/templates.md +++ b/docs/ja/user-guide/templates.md @@ -124,7 +124,7 @@ Screwdriverはテンプレートの設定を読み込み、`screwdriver.yaml`は ```yaml jobs: main: - image: node:8 + image: node:lts requires: [~pr, ~commit] steps: - install: npm install @@ -199,7 +199,7 @@ jobs: ```yaml shared: - image: node:8 + image: node:lts template: nodejs/test steps: - init: npm install @@ -208,7 +208,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts main2: annotations: screwdriver.cd/mergeSharedSteps: true @@ -223,7 +223,7 @@ jobs: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -232,7 +232,7 @@ jobs: annotations: screwdriver.cd/mergeSharedSteps: true requires: [main] - image: node:8 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -259,8 +259,8 @@ version: "2.0.1" description: 'Publish an npm package' maintainer: myname@foo.com images: - stable: node:8 - latest: node:12 + lts: node:lts + latest: node:latest config: image: stable steps: @@ -288,7 +288,7 @@ jobs: jobs: main: requires: [~commit] - image: node:8 + image: node:lts steps: - clone: git clone https://github.com/screwdriver-cd/toolbox.git ci - install: npm install @@ -313,8 +313,8 @@ version: '1.3' description: template for testing maintainer: foo@bar.com images: - stable-image: node:12 - latest-image: node:14 + lts-image: node:lts + latest-image: node:latest config: image: stable-image steps: @@ -337,8 +337,8 @@ version: '1.3' description: template for testing maintainer: foo@bar.com images: - stable-image: node:12 - latest-image: node:8 + lts-image: node:lts + latest-image: node:latest ``` 以下のように、リストからエイリアスを使用することもできます。 @@ -358,7 +358,7 @@ jobs: ```yaml config: - image: node:12 + image: node:lts steps: - preinstall: echo Installing - install: npm install @@ -385,7 +385,7 @@ jobs: ```yaml config: - image: node:12 + image: node:lts steps: - preinstall: echo Installing - install: npm install @@ -405,7 +405,7 @@ version: '2.0.1' description: template for testing parameters maintainer: foo@bar.com config: - image: node:12 + image: node:lts parameters: music: value: [ "country", "hip hop" ] @@ -517,8 +517,8 @@ version: "2.0.1" description: 'Publish an npm package' maintainer: myname@foo.com images: - stable: node:8 - latest: node:12 + lts: node:lts + latest: node:latest config: image: stable steps: @@ -534,7 +534,7 @@ version: "1.0.2" description: 'Do some stuff' maintainer: d2lam@foo.com images: - test: node:18 + test: node:lts config: template: nodejs/publish@2 image: stable @@ -553,9 +553,9 @@ version: "1.0.2" description: 'Do some stuff' maintainer: d2lam@foo.com images: - stable: node:8 - latest: node:12 - test: node:18 + lts: node:lts + latest: node:latest + test: node:lts config: image: stable steps: @@ -587,7 +587,7 @@ config: ```yaml shared: - image: node:12 + image: node:lts jobs: main: requires: [~pr, ~commit] @@ -630,7 +630,7 @@ _注意: イベント作成時にテンプレートが展開されるので、 ```yaml config: - image: node:8 + image: node:lts steps: - getcache: store-cli get node_modules/ --type=cache --scope=event || echo "Failed to fetch Cache" - install: npm install diff --git a/docs/user-guide/commands.md b/docs/user-guide/commands.md index 6feefc84..c8003ff6 100644 --- a/docs/user-guide/commands.md +++ b/docs/user-guide/commands.md @@ -50,7 +50,7 @@ Example `screwdriver.yaml`: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: sd-cmd exec awscli/install@1.0 -i mySecretID -s secretAccessKey -r us-west-2 ``` @@ -135,7 +135,7 @@ To tag your command, run the `sd-cmd promote` command with the format: `sd-cmd p Example `screwdriver.yaml`: ```yaml shared: - image: node:8 + image: node:lts jobs: main: requires: [~pr, ~commit] diff --git a/docs/user-guide/configuration/annotations.md b/docs/user-guide/configuration/annotations.md index f293f6f6..76f7d1b6 100644 --- a/docs/user-guide/configuration/annotations.md +++ b/docs/user-guide/configuration/annotations.md @@ -21,7 +21,7 @@ shared: annotations: foo: &bar # Making an anchor for this configuration requires: [~pr, ~commit] - image: node:8 + image: node:lts jobs: main: diff --git a/docs/user-guide/configuration/build-cache.md b/docs/user-guide/configuration/build-cache.md index 472562ab..408f0795 100644 --- a/docs/user-guide/configuration/build-cache.md +++ b/docs/user-guide/configuration/build-cache.md @@ -37,12 +37,12 @@ cache: jobs: setnpmcache: - image: node:14 + image: node:lts steps: - install: npm install requires: [~commit, ~pr] usenpmcache: - image: node:14 + image: node:lts steps: - ls: ls - install: npm install @@ -54,7 +54,7 @@ jobs: - install: echo "v1.0.0" > ~/versions requires: [~commit, ~pr] usejobcache: - image: node:14 + image: node:lts steps: - ls-tmp: ls /tmp - echo: echo hi > /tmp/test @@ -80,18 +80,18 @@ cache: jobs: setnpmcache: - image: node:12 + image: node:lts steps: - install: npm install requires: [~commit, ~pr] usenpmcache: - image: node:12 + image: node:lts steps: - ls: ls - install: npm install requires: [setnpmcache] no-usenpmcache: - image: node:12 + image: node:lts steps: - ls: ls - run-command: echo 'run command which will not use npmcache.' diff --git a/docs/user-guide/configuration/code-coverage.md b/docs/user-guide/configuration/code-coverage.md index a66d1988..1c9ab925 100644 --- a/docs/user-guide/configuration/code-coverage.md +++ b/docs/user-guide/configuration/code-coverage.md @@ -52,7 +52,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:14 + image: node:lts steps: - install: npm install - test: npm test @@ -75,7 +75,7 @@ Example `screwdriver.yaml`: jobs: main: requires: [~pr, ~commit] - image: node:14 + image: node:lts steps: - install: npm install - test: npm test diff --git a/docs/user-guide/configuration/externalConfig.md b/docs/user-guide/configuration/externalConfig.md index 80ea398d..b2fc063a 100644 --- a/docs/user-guide/configuration/externalConfig.md +++ b/docs/user-guide/configuration/externalConfig.md @@ -36,7 +36,7 @@ childPipelines: jobs: main: - image: node:8 + image: node:lts steps: - install: npm install - publish: npm publish diff --git a/docs/user-guide/configuration/index.md b/docs/user-guide/configuration/index.md index 4b70f0e4..b4874ae0 100644 --- a/docs/user-guide/configuration/index.md +++ b/docs/user-guide/configuration/index.md @@ -40,7 +40,7 @@ You can access information about properties by hovering over the property name. main: requires: [~pr, ~commit, ~sd@123:main] sourcePaths: ["src/app/", "screwdriver.yaml"] - image: node:6 + image: node:lts steps: - init: npm install - test: npm test @@ -53,7 +53,7 @@ You can access information about properties by hovering over the property name. - teardown-save-results: cp ./results $SD_ARTIFACTS_DIR deploy-west: requires: [] - image: node:6 + image: node:lts environment: DEPLOY_ENV: west steps: @@ -61,7 +61,7 @@ You can access information about properties by hovering over the property name. - deploy: npm deploy deploy-east: requires: [deploy-west] - image: node:6 + image: node:lts environment: DEPLOY_ENV: east steps: @@ -69,7 +69,7 @@ You can access information about properties by hovering over the property name. - deploy: npm deploy finished: requires: [stage@deployment] - image: node:6 + image: node:lts steps: - echo: echo done stages: diff --git a/docs/user-guide/configuration/jobconfiguration.md b/docs/user-guide/configuration/jobconfiguration.md index 0c676a12..d1f459db 100644 --- a/docs/user-guide/configuration/jobconfiguration.md +++ b/docs/user-guide/configuration/jobconfiguration.md @@ -31,7 +31,7 @@ Jobs are how you define what happens in every build. Every job configuration mus jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - test: npm test @@ -72,7 +72,7 @@ By default, instructions in steps are executed using the Bourne shell (`/bin/sh` jobs: main: requires: [~pr, ~commit] - image: node:8 + image: node:lts environment: USER_SHELL_BIN: bash steps: @@ -107,7 +107,7 @@ The following example defines a shared configuration for `image` and `steps`, wh ``` shared: - image: node:8 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -116,7 +116,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts main2: requires: [main] steps: @@ -129,14 +129,14 @@ The above example would be equivalent to: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - pretest: npm lint - test: npm test main2: requires: [main] - image: node:8 + image: node:lts steps: - test: echo Skipping test diff --git a/docs/user-guide/configuration/parameters.md b/docs/user-guide/configuration/parameters.md index 64638766..b94fdfa8 100644 --- a/docs/user-guide/configuration/parameters.md +++ b/docs/user-guide/configuration/parameters.md @@ -65,7 +65,7 @@ Parameters can be defined at two scopes: You can see a full screwdriver.yaml example below: ```yaml shared: - image: node:8 + image: node:lts parameters: skip_test: ["no", "yes"] diff --git a/docs/user-guide/configuration/sourcePaths.md b/docs/user-guide/configuration/sourcePaths.md index f5891b27..856bf5f0 100644 --- a/docs/user-guide/configuration/sourcePaths.md +++ b/docs/user-guide/configuration/sourcePaths.md @@ -39,7 +39,7 @@ And the `screwdriver.yaml`: ```yaml jobs: main: - image: node:6 + image: node:lts requires: [~pr, ~commit] sourcePaths: ["src/app/", "screwdriver.yaml"] steps: @@ -61,7 +61,7 @@ Given a same repository like above, and the `screwdriver.yaml`: ```yaml jobs: main: - image: node:6 + image: node:lts requires: [~pr, ~commit] sourcePaths: ["src/app/", "screwdriver.yaml", "!src/app/package.json"] steps: diff --git a/docs/user-guide/configuration/stages.md b/docs/user-guide/configuration/stages.md index 7a107e78..451c3d98 100644 --- a/docs/user-guide/configuration/stages.md +++ b/docs/user-guide/configuration/stages.md @@ -57,11 +57,11 @@ stages: jobs: [ci-deploy, ci-test, ci-certify] description: "This stage will deploy the latest application to the CI environment and certify it after the tests have passed." setup: - image: node:18 + image: node:lts steps: - init: echo 'integration setup' teardown: - image: node:18 + image: node:lts steps: - init: echo 'integration teardown' ``` diff --git a/docs/user-guide/configuration/workflow.md b/docs/user-guide/configuration/workflow.md index a18b63a7..ede39b88 100644 --- a/docs/user-guide/configuration/workflow.md +++ b/docs/user-guide/configuration/workflow.md @@ -56,13 +56,13 @@ In the following example, the job, `main`, will start after any SCM pull-request ``` jobs: main: - image: node:14 + image: node:lts requires: [~pr, ~commit] steps: - echo: echo hi second: - image: node:14 + image: node:lts requires: [main] steps: - echo: echo bye @@ -81,7 +81,7 @@ In the following example, where `A` and `B` requires `main`. This will cause `A` ``` shared: - image: node:14 + image: node:lts jobs: main: @@ -112,7 +112,7 @@ In the following example, the `last` job will trigger once after either `first` ``` shared: - image: node:6 + image: node:lts steps: - greet: echo hello jobs: @@ -134,7 +134,7 @@ In the following example, when a commit is made on branch `staging`, both `stagi ``` shared: - image: node:8 + image: node:lts jobs: main: @@ -169,7 +169,7 @@ In the following example, when `stable` release is pushed, `all-tag-and-release` ``` shared: - image: node:12 + image: node:lts jobs: all-tag-and-release: @@ -195,7 +195,7 @@ In the following example, this pipeline will start the `main` job after any pull ``` jobs: main: - image: node:14 + image: node:lts requires: [~pr, ~commit, ~sd@456:publish] steps: - echo: echo hi @@ -215,7 +215,7 @@ Pipeline 3 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -231,7 +231,7 @@ Pipeline 2 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -243,7 +243,7 @@ Pipeline 4 screwdriver.yaml: ``` shared: - image: node:12 + image: node:lts steps: - echo: echo hi jobs: @@ -272,7 +272,7 @@ In the following example, `job2` is blocked by `job1` or `sd@456:publish`. If `j ``` shared: - image: node:14 + image: node:lts jobs: job1: requires: [~commit, ~pr] @@ -301,7 +301,7 @@ In the following example, `job1` will be frozen during the month of March, `job2 ``` shared: - image: node:14 + image: node:lts jobs: job1: @@ -329,7 +329,7 @@ In the following example `detached` job is detached. ``` shared: - image: node:8 + image: node:lts jobs: detached: @@ -347,7 +347,7 @@ In the following example, we can add repositories to subscribe to in the `scmUrl ``` shared: - image: node:8 + image: node:lts subscribe: scmUrls: diff --git a/docs/user-guide/templates/job-templates.md b/docs/user-guide/templates/job-templates.md index 9d3aa354..ed659a66 100644 --- a/docs/user-guide/templates/job-templates.md +++ b/docs/user-guide/templates/job-templates.md @@ -124,7 +124,7 @@ Screwdriver takes the template configuration and plugs it in, so that the `screw ```yaml jobs: main: - image: node:8 + image: node:lts requires: [~pr, ~commit] steps: - install: npm install @@ -209,7 +209,7 @@ The following example defines a merged shared configuration for `image` and `ste ```yaml shared: - image: node:8 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -218,7 +218,7 @@ shared: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts main2: annotations: screwdriver.cd/mergeSharedSteps: true @@ -233,7 +233,7 @@ The above example would be equivalent to: jobs: main: requires: [~pr, ~commit] - image: node:6 + image: node:lts steps: - init: npm install - pretest: npm lint @@ -242,7 +242,7 @@ jobs: annotations: screwdriver.cd/mergeSharedSteps: true requires: [main] - image: node:8 + image: node:lts steps: - pretest: npm lint - test: echo Skipping test @@ -268,8 +268,8 @@ version: "2.0.1" description: 'Publish an npm package' maintainer: myname@foo.com images: - stable: node:8 - latest: node:12 + lts: node:lts + latest: node:latest config: image: stable steps: @@ -297,7 +297,7 @@ Result: jobs: main: requires: [~commit] - image: node:8 + image: node:lts steps: - clone: git clone https://github.com/screwdriver-cd/toolbox.git ci - install: npm install @@ -323,8 +323,8 @@ version: '1.3' description: template for testing maintainer: foo@bar.com images: - stable-image: node:12 - latest-image: node:14 + lts-image: node:lts + latest-image: node:latest config: image: stable-image steps: @@ -347,8 +347,8 @@ version: '1.3' description: template for testing maintainer: foo@bar.com images: - stable-image: node:12 - latest-image: node:8 + lts-image: node:lts + latest-image: node:latest ``` Users can pick an alias from the list and use it like so: @@ -366,7 +366,7 @@ Avoid using any [wrapping](#using-a-template) prefixes (`pre` or `post`) in your ```yaml config: - image: node:12 + image: node:lts steps: - preinstall: echo Installing - install: npm install @@ -389,7 +389,7 @@ This flag applies to any template or job that uses this template. All templates ```yaml config: - image: node:12 + image: node:lts steps: - preinstall: echo Installing - install: npm install @@ -409,7 +409,7 @@ version: '2.0.1' description: template for testing parameters maintainer: foo@bar.com config: - image: node:12 + image: node:lts parameters: music: value: [ "country", "hip hop" ] @@ -522,8 +522,8 @@ version: "2.0.1" description: 'Publish an npm package' maintainer: myname@foo.com images: - stable: node:8 - latest: node:12 + lts: node:lts + latest: node:latest config: image: stable steps: @@ -540,7 +540,7 @@ version: "1.0.2" description: 'Do some stuff' maintainer: d2lam@foo.com images: - test: node:18 + test: node:lts config: template: nodejs/publish@2 image: stable @@ -559,9 +559,9 @@ version: "1.0.2" description: 'Do some stuff' maintainer: d2lam@foo.com images: - stable: node:8 - latest: node:12 - test: node:18 + lts: node:lts + latest: node:latest + test: node:lts config: image: stable steps: @@ -592,7 +592,7 @@ Example `screwdriver.yaml`: ```yaml shared: - image: node:12 + image: node:lts jobs: main: requires: [~pr, ~commit] @@ -635,7 +635,7 @@ To use the [build cache feature](../configuration/build-cache), the [store-cli c ```yaml config: - image: node:8 + image: node:lts steps: - getcache: store-cli get node_modules/ --type=cache --scope=event || echo "Failed to fetch Cache" - install: npm install diff --git a/docs/user-guide/templates/pipeline-templates.md b/docs/user-guide/templates/pipeline-templates.md index 90f32208..51e2dedb 100644 --- a/docs/user-guide/templates/pipeline-templates.md +++ b/docs/user-guide/templates/pipeline-templates.md @@ -52,7 +52,7 @@ description: An example pipeline template for nodejs maintainer: foo@bar.com config: shared: - image: node:18 + image: node:lts jobs: main: steps: @@ -114,7 +114,7 @@ shared: FOO: bar jobs: main: - image: node:18 + image: node:lts requires: [~pr, ~commit] steps: - install: npm install @@ -172,7 +172,7 @@ Example `screwdriver.yaml`: ```yaml shared: - image: node:18 + image: node:lts jobs: main: requires: [~pr, ~commit]