Skip to content

Commit dc77255

Browse files
Superfreshalex-codefresh
authored andcommitted
Commit new codefresh.yaml
1 parent f371d8b commit dc77255

3 files changed

Lines changed: 31 additions & 33 deletions

File tree

codefresh.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,44 @@
1-
# this pipeline should not be run on version tag releases (it may cause a non correct sha to override version tagged image in dockerhub)
21
version: "1.0"
3-
42
steps:
5-
63
install_dependencies:
7-
title: 'Installing testing dependencies'
4+
title: Installing testing dependencies
85
image: codefresh/node-tester-image:8.8.0
96
commands:
10-
- yarn install --frozen-lockfile
11-
7+
- yarn install --frozen-lockfile
128
eslint:
13-
title: 'Running linting logic'
9+
title: Running linting logic
1410
image: codefresh/node-tester-image:8.8.0
1511
commands:
16-
- yarn eslint
17-
12+
- yarn eslint
1813
unit-tests:
19-
title: 'Running unit tests'
14+
title: Running unit tests
2015
image: codefresh/node-tester-image:8.8.0
2116
commands:
22-
- yarn test
23-
17+
- yarn test
2418
build_step:
2519
type: build
2620
dockerfile: Dockerfile
2721
image-name: codefresh/cli
2822
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
29-
3023
push_to_registry_revision:
31-
title: "Pushing image tagged with revision to registry"
24+
title: Pushing image tagged with revision to registry
3225
type: push
3326
candidate: ${{build_step}}
34-
tag: ${{CF_SHORT_REVISION}}
35-
registry: "CFCR"
36-
27+
tags:
28+
- latest
29+
- 0.1.0
30+
registry: CFCR
3731
execute_release_pipeline:
38-
title: "Execute release pipeline in case version was changed"
32+
title: Execute release pipeline in case version was changed
3933
fail_fast: false
4034
image: codefresh/cli
4135
commands:
42-
- 'apk update && apk add jq'
43-
- 'export PACKAGE_VERSION=$(jq -r ".version" package.json)'
44-
- "echo Current version: $PACKAGE_VERSION"
45-
- "git tag $PACKAGE_VERSION && echo Running release pipeline && codefresh run 5a4c94d282ed4d00012b54e8 -b=master --detach"
36+
- apk update && apk add jq
37+
- export PACKAGE_VERSION=$(jq -r ".version" package.json)
38+
- 'echo Current version: $PACKAGE_VERSION'
39+
- git tag $PACKAGE_VERSION && echo Running release pipeline && codefresh run 5a4c94d282ed4d00012b54e8
40+
-b=master --detach
4641
when:
4742
branch:
48-
only: [ master ]
43+
only:
44+
- master

icon.jpg

21 KB
Loading

plugin.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
name: cli
12
image: codefresh/cli
3+
tag: 0.1.0
24
version: 0.1.0
35
description: Operate on Codefresh resources
4-
maintainers:
5-
- name: Itay Shakury
6-
76
categories:
8-
- Featured
7+
- Featured
98
keywords:
10-
- cli
9+
- cli
1110
sources:
12-
- https://github.com/codefresh-io/cli
13-
icon: https://i0.wp.com/www.macobserver.com/wp-content/uploads/2016/07/Terminal-icon.jpg
11+
- https://github.com/codefresh-io/cli
12+
maintainers:
13+
- name: Itay Shakury
14+
15+
icon: https://raw.githubusercontent.com/codefresh-plugins/cli/master/icon.jpg
1416
envs:
15-
- name:
16-
type: optional
17-
description: Path for cfconfig file path
17+
- name: CFCONFIG
18+
type: optional
19+
description: Path for cfconfig file path

0 commit comments

Comments
 (0)