Skip to content

Commit 3419193

Browse files
Itai GendlerItai Gendler
authored andcommitted
Update release flow to start with pulling the build pipeline image
1 parent 977730f commit 3419193

File tree

5 files changed

+29
-27
lines changed

5 files changed

+29
-27
lines changed

codefresh-release.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,29 @@ steps:
2121
- "echo Current version: $PACKAGE_VERSION"
2222
- "cf_export PACKAGE_VERSION"
2323

24+
# in case the candidate image will not be found the release flow will crash and this means that the build pipelines has failed
25+
push_to_registry_version:
26+
title: "Update dockerhub image version tag"
27+
type: push
28+
candidate: r.cfcr.io/codefresh-inc/codefresh/cli:${{CF_SHORT_REVISION}}
29+
image_name: codefresh/cli
30+
tag: ${{PACKAGE_VERSION}}
31+
registry: dockerhub
32+
33+
push_to_registry_latest:
34+
title: "Update dockerhub image latest tag"
35+
type: push
36+
candidate: r.cfcr.io/codefresh-inc/codefresh/cli:${{CF_SHORT_REVISION}}
37+
image_name: codefresh/cli
38+
tag: latest
39+
registry: dockerhub
40+
41+
deploy_to_npm:
42+
title: "Publishing To Npm"
43+
image: codefresh/npm-publish:master
44+
commands:
45+
- NPM_TOKEN=${{NPM_TOKEN}} npm run ci-publish
46+
2447
compile_executables:
2548
title: "Compiling executables"
2649
image: codefresh/cli-build
@@ -77,25 +100,3 @@ steps:
77100
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-win-x86.zip"
78101
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x86.zip README.md LICENSE -j ./dist/codefresh-win-x86.exe "
79102
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-win-x86.zip https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-win-x86.zip'
80-
81-
push_to_registry_version:
82-
title: "Update dockerhub image version tag"
83-
type: push
84-
candidate: r.cfcr.io/codefresh-inc/codefresh/cli:${{CF_SHORT_REVISION}}
85-
image_name: codefresh/cli
86-
tag: ${{PACKAGE_VERSION}}
87-
registry: dockerhub
88-
89-
push_to_registry_latest:
90-
title: "Update dockerhub image latest tag"
91-
type: push
92-
candidate: r.cfcr.io/codefresh-inc/codefresh/cli:${{CF_SHORT_REVISION}}
93-
image_name: codefresh/cli
94-
tag: latest
95-
registry: dockerhub
96-
97-
deploy_to_npm:
98-
title: "Publishing To Npm"
99-
image: codefresh/npm-publish:master
100-
commands:
101-
- NPM_TOKEN=${{NPM_TOKEN}} npm run ci-publish

lib/interface/cli/commands/image/get.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const command = new Command({
2222
default: DEFAULTS.GET_LIMIT_RESULTS,
2323
})
2424
.option('all', {
25+
alias: 'a',
2526
describe: 'Return images from all possible registries (by default only r.cfcr.io images will be returned)',
2627
default: false,
2728
})

lib/logic/entities/Pipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class Pipeline extends Entity {
55
super();
66
this.entityType = 'pipeline';
77
this.info = data;
8-
this.defaultColumns = ['id', 'name', 'imageName', 'repoOwner'];
9-
this.wideColumns = ['id', 'name', 'imageName', 'repoOwner', 'repoName'];
8+
this.defaultColumns = ['id', 'name', 'repoOwner', 'repoName'];
9+
this.wideColumns = this.defaultColumns.concat([]);
1010
}
1111
}
1212

lib/logic/entities/Workflow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class Workflow extends Entity {
55
super();
66
this.entityType = 'workflow';
77
this.info = data;
8-
this.defaultColumns = ['id', 'pipeline', 'trigger', 'status', 'created', 'totalTime'];
9-
this.wideColumns = this.defaultColumns.concat(['finished', 'repository', 'branch']);
8+
this.defaultColumns = ['id', 'pipeline', 'trigger', 'status', 'created', 'totalTime', 'finished', 'repository', 'branch'];
9+
this.wideColumns = this.defaultColumns.concat([]);
1010
}
1111

1212
getStatus() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.4.5",
3+
"version": "0.4.6",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)