File tree Expand file tree Collapse file tree 4 files changed +594
-389
lines changed Expand file tree Collapse file tree 4 files changed +594
-389
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:alpine as go
2
2
3
- RUN apk add --update ca-certificates git
3
+ RUN apk --update add ca-certificates git
4
+
4
5
RUN go get github.com/github/hub
5
6
6
- FROM node:10.15.3-alpine
7
+ FROM codefresh/node:10.15.3-alpine3.11
8
+
9
+ RUN apk --update add --no-cache ca-certificates git curl bash yarn
7
10
8
- RUN apk add --update ca-certificates git curl jq py-pip bash && pip install yq
9
11
COPY --from=go /go/bin/hub /usr/local/bin/hub
12
+
13
+ ARG JQ_VERSION=1.6
14
+ ARG YQ_VERSION=2.4.1
15
+
16
+ RUN wget -O /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \
17
+ wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 && \
18
+ chmod +x /usr/local/bin/*
19
+
10
20
WORKDIR /cf-cli
11
21
12
22
COPY package.json /cf-cli
13
23
COPY check-version.js /cf-cli
14
24
15
- RUN yarn --prod install
25
+ RUN yarn install --prod --frozen-lockfile && \
26
+ yarn cache clean
16
27
17
28
COPY . /cf-cli
18
29
19
30
RUN yarn generate-completion
31
+ RUN apk del yarn
20
32
21
33
RUN ln -s $(pwd)/lib/interface/cli/codefresh /usr/local/bin/codefresh
22
34
Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ steps:
12
12
13
13
install_dependencies :
14
14
title : ' Installing testing dependencies'
15
- image : codefresh/node-tester-image:8.8.0
15
+ image : codefresh/node-tester-image:10.15.3
16
16
commands :
17
17
- yarn install --frozen-lockfile
18
18
19
19
eslint :
20
20
title : ' Running linting logic'
21
- image : codefresh/node-tester-image:8.8.0
21
+ image : codefresh/node-tester-image:10.15.3
22
22
commands :
23
23
- yarn eslint
24
24
25
25
unit-tests :
26
26
title : ' Running unit tests'
27
- image : codefresh/node-tester-image:8.8.0
27
+ image : codefresh/node-tester-image:10.15.3
28
28
commands :
29
29
- yarn test
30
30
Original file line number Diff line number Diff line change 34
34
"@codefresh-io/docker-reference" : " ^0.0.5" ,
35
35
"ajv" : " ^6.6.1" ,
36
36
"bluebird" : " ^3.5.1" ,
37
- "cf-errors" : " ^0.1.11 " ,
37
+ "cf-errors" : " ^0.1.12 " ,
38
38
"chalk" : " ^1.1.3" ,
39
39
"cli-progress" : " ^1.6.1" ,
40
40
"codefresh-sdk" : " 1.4.0" ,
You can’t perform that action at this time.
0 commit comments