Skip to content

Commit 9afd45d

Browse files
Itai GendlerItai Gendler
authored andcommitted
Add codefresh cli plugin
1 parent 8fca18f commit 9afd45d

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

stable/codefresh-cli/NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Notes

stable/codefresh-cli/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Codefresh Cli Plugin
2+
3+
Use Codefresh Cli plugin to perform operations on your Codefresh resources
4+
5+
## Usage
6+
7+
8+
```yaml
9+
---
10+
version: '1.0'
11+
12+
steps:
13+
14+
...
15+
16+
annotate_image:
17+
image: codefresh/cli
18+
description: annotates image with metadata
19+
command: annotate image IMAGE_ID -a key1=value1 -a key2=value2
20+
21+
run_pipeline:
22+
image: codefresh/cli
23+
description: run a pipeline
24+
command: run pipeline PIPELINE_NAME REPO_OWNER REPO_NAME -b master
25+
...
26+
27+
```
28+
29+
## Environment Variables
30+
31+
- `CFCONFIG` - Path for cfconfig file path (default: ${HOME}/.cfconfig

stable/codefresh-cli/plugin.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image: codefresh/cli
2+
version: 0.1.0
3+
description: Operate on Codefresh resources
4+
keywords:
5+
- cli
6+
home: https://github.com/codefresh-io/codefresh
7+
sources:
8+
- https://github.com/codefresh-io/codefresh
9+
icon: http://cdn.osxdaily.com/wp-content/uploads/2014/08/terminal-icon-osx.png
10+
envs:
11+
- name: CFCONFIG
12+
description: Path for cfconfig file path

0 commit comments

Comments
 (0)