Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Use node.js v16.8.0 for CI (#2292)
Browse files Browse the repository at this point in the history
* Use node.js v16.8.0 for CI

* Share docker image
  • Loading branch information
evantahler committed Sep 13, 2021
1 parent 0a3d670 commit 04159c9
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 72 deletions.
124 changes: 62 additions & 62 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/merger/data/ci/apps/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
4 changes: 2 additions & 2 deletions tools/merger/data/ci/base.yml.template
Expand Up @@ -18,7 +18,7 @@ jobs:
build:
resource_class: "medium+"
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand All @@ -38,7 +38,7 @@ jobs:

complete:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/cli/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/client/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/command/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/core-local/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/core/job.yml.template
@@ -1,6 +1,6 @@
test-{{{type}}}-{{{test_section}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/plugin/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tools/merger/data/ci/ui/job.yml.template
@@ -1,6 +1,6 @@
{{{job_name}}}:
docker:
- image: circleci/node:16
- image: {{{docker_image}}}
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
4 changes: 4 additions & 0 deletions tools/merger/src/ci_generate.js
Expand Up @@ -5,6 +5,8 @@ const Mustache = require("mustache");
const { allPackagePaths, allPluginPaths } = require("../../shared/packages");
const execSync = require("../../shared/exec");

const docker_image = "circleci/node:16.8.0";

module.exports.cmd = async function (vargs) {
const instance = new Generator(vargs);
await instance.generate();
Expand Down Expand Up @@ -367,6 +369,7 @@ class Generator {

renderJob(job, name) {
const template = readTemplate(name, job.type);
job.docker_image = docker_image;
return Mustache.render(template, job);
}

Expand Down Expand Up @@ -394,6 +397,7 @@ class Generator {
// these get passed through
view[".Branch"] = "{{ .Branch }}";
view[".Revision"] = "{{ .Revision }}";
view.docker_image = docker_image;

const methods = [
"jobs",
Expand Down

0 comments on commit 04159c9

Please sign in to comment.