Skip to content

Commit 0cb898f

Browse files
goruhaOleg Sucharevich
authored andcommitted
Build alpine executables (#227)
* Added alpine binary artifact * Publish alpine binary artifacts * Pin new version
1 parent c26ac4e commit 0cb898f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

codefresh-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ steps:
8989
- "mv ./dist/codefresh-win.exe ./dist/codefresh.exe"
9090
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/codefresh.exe "
9191
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-win-x64.zip https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-win-x64.zip'
92-
92+
# upload alpine-x64 asset
93+
- "mv ./dist/codefresh-alpine ./dist/codefresh"
94+
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar README.md LICENSE -C ./dist ./codefresh "
95+
- "gzip codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar"
96+
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar.gz'
9397

9498
update_documentation:
9599
title: "Update documentation http://cli.codefresh.io"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "codefresh",
3-
"version": "0.8.81",
3+
"version": "0.8.82",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
77
"scripts": {
88
"test": "jest .spec.js --coverage",
99
"eslint": "eslint lib1logic/**",
1010
"ci-publish": "ci-publish",
11-
"pkg": "pkg . -t node9-macos-x64,node9-linux-x64,node9-win-x64 --out-path ./dist",
11+
"pkg": "pkg . -t node9-alpine-x64,node9-macos-x64,node9-linux-x64,node9-win-x64 --out-path ./dist",
1212
"serve-docs": "yarn build-local-docs && cd temp && hugo server -D",
1313
"serve-docs-beta": "ALLOW_BETA_COMMANDS=true yarn build-local-docs && cd temp && hugo server -D",
1414
"build-local-docs": "node ./docs/index.js",

0 commit comments

Comments
 (0)