File tree Expand file tree Collapse file tree 4 files changed +203
-6
lines changed Expand file tree Collapse file tree 4 files changed +203
-6
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ yarn-error.log
4
4
* .log
5
5
coverage
6
6
.DS_Store
7
+ /dist
8
+ * .zip
Original file line number Diff line number Diff line change
1
+ version : ' 1.0'
2
+
3
+ steps :
4
+
5
+ build_executables :
6
+ title : " Compiling executables"
7
+ image : node:9.2.0
8
+ commands :
9
+ - " yarn install"
10
+ - " yarn compile"
11
+ - " apt-get update"
12
+ - " apt-get install -y zip jq"
13
+ - " zip codefresh-linux ./dist/codefresh-linux"
14
+ - " zip codefresh-macos ./dist/codefresh-macos"
15
+ - " zip codefresh-win ./dist/codefresh-win.exe"
16
+ - " curl https://api.github.com/repos/codefresh-io/codefresh/releases/tags/${{CF_BRANCH}} | jq -r '.id' > release-id.txt"
17
+ - ' curl -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{TOKEN}}" --data-binary @codefresh-macos.zip https://uploads.github.com/repos/codefresh-io/codefresh/releases/$(cat release-id.txt)/assets?name=codefresh-macos.zip'
18
+ - ' curl -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{TOKEN}}" --data-binary @codefresh-linux.zip https://uploads.github.com/repos/codefresh-io/codefresh/releases/$(cat release-id.txt)/assets?name=codefresh-linux.zip'
19
+ - ' curl -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{TOKEN}}" --data-binary @codefresh-win.zip https://uploads.github.com/repos/codefresh-io/codefresh/releases/$(cat release-id.txt)/assets?name=codefresh-win.zip'
20
+
21
+
22
+ # # add to npm
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " jest unit.spec.js --coverage" ,
9
9
"eslint" : " eslint lib/logic/**" ,
10
- "ci-publish" : " ci-publish"
10
+ "ci-publish" : " ci-publish" ,
11
+ "compile" : " pkg . --out-path ./dist"
11
12
},
12
13
"bin" : {
13
14
"codefresh" : " ./lib/interface/cli/index.js"
16
17
"keywords" : [
17
18
" command line"
18
19
],
20
+ "pkg" : {
21
+ "scripts" : " lib/**/*.js"
22
+ },
19
23
"dependencies" : {
20
24
"@codefresh-io/docker-reference" : " ^0.0.5" ,
21
25
"bluebird" : " ^3.5.1" ,
46
50
"eslint-config-airbnb-base" : " ^12.1.0" ,
47
51
"eslint-plugin-import" : " ^2.8.0" ,
48
52
"eslint-plugin-mocha" : " ^4.11.0" ,
49
- "jest" : " ^21.2.1"
53
+ "jest" : " ^21.2.1" ,
54
+ "pkg" : " ^4.3.0-beta.5"
50
55
},
51
56
"bugs" : {
52
57
"url" : " https://github.com/codefresh-io/cli/issues"
You can’t perform that action at this time.
0 commit comments