Skip to content

Commit 412202b

Browse files
Saas 3337 (#345)
* update analyzer description * bump version * update node js to 10.15.3 * update codefresh.yml to new version * update codefresh.yml to export runtime env * update codefresh.yml to export runtime env * bump version
1 parent 2610e5b commit 412202b

File tree

5 files changed

+2278
-1381
lines changed

5 files changed

+2278
-1381
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM golang:alpine as go
33
RUN apk add --update ca-certificates git
44
RUN go get github.com/github/hub
55

6-
FROM node:9.2.0-alpine
6+
FROM node:10.15.3-alpine
77

88
RUN apk add --update ca-certificates git curl jq py-pip bash && pip install yq
99
COPY --from=go /go/bin/hub /usr/local/bin/hub

codefresh.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,27 @@ version: "1.0"
33

44
steps:
55

6+
prepare_environment_variabels:
7+
title: 'Prepare environment variables'
8+
image: codefresh/cli
9+
commands:
10+
- cf_export RUNTIME_VERSION=$(jq -r ".engines.node" package.json)
11+
612
install_dependencies:
713
title: 'Installing testing dependencies'
8-
image: codefresh/node-tester-image:8.8.0
14+
image: node:${{RUNTIME_VERSION}}
915
commands:
1016
- yarn install --frozen-lockfile
1117

1218
eslint:
1319
title: 'Running linting logic'
14-
image: codefresh/node-tester-image:8.8.0
20+
image: node:${{RUNTIME_VERSION}}
1521
commands:
1622
- yarn eslint
1723

1824
unit-tests:
1925
title: 'Running unit tests'
20-
image: codefresh/node-tester-image:8.8.0
26+
image: node:${{RUNTIME_VERSION}}
2127
commands:
2228
- yarn test
2329

lib/interface/cli/commands/analyzer/analyze.cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Logic = require('./analyzer.logic');
55
const command = new Command({
66
root: true,
77
command: 'analyze <repoOwner> <repoName> [context]',
8-
description: 'Analyze your repo',
8+
description: 'Analyzes your git repository and creates a proposed Cofefresh pipeline that clones the source code and builds/packages it',
99
webDocs: {
1010
category: 'Analyzer',
1111
title: 'Analyze'
@@ -23,7 +23,7 @@ const command = new Command({
2323
describe: 'Your git context that you can get from integrations -> git , if empty - using personal context',
2424
required: false
2525
})
26-
.example('codefresh analyze petlove bee github', 'Analyze repo'),
26+
.example('codefresh analyze elasticio petstore-component-nodejs github', 'Analyze repo'),
2727
handler: async (argv) => {
2828
const { repoOwner, repoName, context } = argv;
2929
const yaml = await Logic.analyze({repoOwner, repoName, context});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.25.0",
3+
"version": "0.26.0",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
@@ -88,7 +88,7 @@
8888
"author": "Codefresh",
8989
"license": "ISC",
9090
"engines": {
91-
"node": ">=8.0.0"
91+
"node": "10.15.3"
9292
},
9393
"jest": {
9494
"testEnvironment": "node",

0 commit comments

Comments
 (0)