diff --git a/docs-template/content/contexts/_index.md b/docs-template/content/contexts/_index.md
index d356592d0..534bf3506 100644
--- a/docs-template/content/contexts/_index.md
+++ b/docs-template/content/contexts/_index.md
@@ -2,16 +2,16 @@
title = "Contexts"
+++
-### [Update a context](update-a-context)
-`codefresh patch context`
-
-Apply changes to a context
-
### [Create a context](create-a-context)
`codefresh create context [type] [name]`
Create a context
+### [Update a context](update-a-context)
+`codefresh patch context`
+
+Apply changes to a context
+
### [Delete a context](delete-a-context)
`codefresh delete context [name]`
diff --git a/docs-template/content/images/Get a single image.md b/docs-template/content/images/Get a single image.md
index 5d73ece7a..f780319c3 100644
--- a/docs-template/content/images/Get a single image.md
+++ b/docs-template/content/images/Get a single image.md
@@ -18,6 +18,7 @@ Option | Default | Description
--limit | 25 | Limit amount of returned results
--all | | Return images from all possible registries (by default only r.cfcr.io images will be returned)
--label | | Filter by a list of annotated labels
+--tag | | Filter by a list of tags
--sha | | Filter by specific commit sha
--image-name | | Filter by specific image name
--branch | | Filter by specific branch
diff --git a/docs/authentication/create-authentication-context/index.html b/docs/authentication/create-authentication-context/index.html
index 9f3f3f3b7..a619c6885 100644
--- a/docs/authentication/create-authentication-context/index.html
+++ b/docs/authentication/create-authentication-context/index.html
@@ -173,6 +173,31 @@
Contexts
diff --git a/docs/builds/get-a-single-build/index.html b/docs/builds/get-a-single-build/index.html
index 2a25667d4..310515853 100644
--- a/docs/builds/get-a-single-build/index.html
+++ b/docs/builds/get-a-single-build/index.html
@@ -205,6 +205,16 @@
Environments
diff --git a/docs/contexts/index.html b/docs/contexts/index.html
index 50d6b9fe5..1fdb279c9 100644
--- a/docs/contexts/index.html
+++ b/docs/contexts/index.html
@@ -352,8 +352,8 @@
-
-- Update a context
- Create a context
+- Update a context
- Delete a context
- Get a single context
- Replace a context
@@ -381,18 +381,18 @@ Contexts
-
-
-codefresh patch context
-
-Apply changes to a context
-
codefresh create context [type] [name]
Create a context
+
+
+codefresh patch context
+
+Apply changes to a context
+
codefresh delete context [name]
diff --git a/docs/images/get-a-single-image/index.html b/docs/images/get-a-single-image/index.html
index 113d0a710..9ddc8f24b 100644
--- a/docs/images/get-a-single-image/index.html
+++ b/docs/images/get-a-single-image/index.html
@@ -439,6 +439,12 @@ Options
Filter by a list of annotated labels |
+
+–tag |
+ |
+Filter by a list of tags |
+
+
–sha |
|
diff --git a/docs/index.json b/docs/index.json
index 6e5d22817..9b2ea3eb2 100644
--- a/docs/index.json
+++ b/docs/index.json
@@ -95,7 +95,7 @@
"title": "Contexts",
"tags": [],
"description": "",
- "content": " Update a context codefresh patch context\nApply changes to a context\nCreate a context codefresh create context [type] [name]\nCreate a context\nDelete a context codefresh delete context [name]\nDelete a context\nGet a single context codefresh get contexts [name]\nGet a specific or an array of contexts\nReplace a context codefresh replace context\nReplace a context\n"
+ "content": " Create a context codefresh create context [type] [name]\nCreate a context\nUpdate a context codefresh patch context\nApply changes to a context\nDelete a context codefresh delete context [name]\nDelete a context\nGet a single context codefresh get contexts [name]\nGet a specific or an array of contexts\nReplace a context codefresh replace context\nReplace a context\n"
},
{
"uri": "http://cli.codefresh.io/compositions/create-a-composition/",
@@ -200,7 +200,7 @@
"title": "Get a single image",
"tags": [],
"description": "",
- "content": " Command codefresh get images [id]\nGet a specific or an array of images\nPositionals Option Default Description id image id Options Option Default Description \u0026ndash;limit 25 Limit amount of returned results \u0026ndash;all Return images from all possible registries (by default only r.cfcr.io images will be returned) \u0026ndash;label Filter by a list of annotated labels \u0026ndash;sha Filter by specific commit sha \u0026ndash;image-name Filter by specific image name \u0026ndash;branch Filter by specific branch \u0026ndash;page 1 Paginated page "
+ "content": " Command codefresh get images [id]\nGet a specific or an array of images\nPositionals Option Default Description id image id Options Option Default Description \u0026ndash;limit 25 Limit amount of returned results \u0026ndash;all Return images from all possible registries (by default only r.cfcr.io images will be returned) \u0026ndash;label Filter by a list of annotated labels \u0026ndash;tag Filter by a list of tags \u0026ndash;sha Filter by specific commit sha \u0026ndash;image-name Filter by specific image name \u0026ndash;branch Filter by specific branch \u0026ndash;page 1 Paginated page "
},
{
"uri": "http://cli.codefresh.io/pipelines/get-a-single-pipeline/",
diff --git a/docs/index.xml b/docs/index.xml
index 03914f8a8..dab31645f 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -231,7 +231,7 @@ Positionals Option Default Description name context name Options O
http://cli.codefresh.io/images/get-a-single-image/
Command codefresh get images [id]
Get a specific or an array of images
-Positionals Option Default Description id image id Options Option Default Description –limit 25 Limit amount of returned results –all Return images from all possible registries (by default only r.cfcr.io images will be returned) –label Filter by a list of annotated labels –sha Filter by specific commit sha –image-name Filter by specific image name –branch Filter by specific branch –page 1 Paginated page
+Positionals Option Default Description id image id Options Option Default Description –limit 25 Limit amount of returned results –all Return images from all possible registries (by default only r.cfcr.io images will be returned) –label Filter by a list of annotated labels –tag Filter by a list of tags –sha Filter by specific commit sha –image-name Filter by specific image name –branch Filter by specific branch –page 1 Paginated page
-
diff --git a/docs/predefined-pipelines/index.html b/docs/predefined-pipelines/index.html
index 4b61a7a51..daeacbe53 100644
--- a/docs/predefined-pipelines/index.html
+++ b/docs/predefined-pipelines/index.html
@@ -243,6 +243,21 @@
Pipelines
-
diff --git a/docs/predefined-pipelines/install-or-upgrade-a-helm-chart/index.html b/docs/predefined-pipelines/install-or-upgrade-a-helm-chart/index.html
index 7088fd194..ee3b5f088 100644
--- a/docs/predefined-pipelines/install-or-upgrade-a-helm-chart/index.html
+++ b/docs/predefined-pipelines/install-or-upgrade-a-helm-chart/index.html
@@ -221,19 +221,19 @@
Images
diff --git a/examples/pipeline2-git.yml b/examples/pipeline2-git.yml
index ca7ea841a..9eaa9a4dc 100644
--- a/examples/pipeline2-git.yml
+++ b/examples/pipeline2-git.yml
@@ -1,5 +1,4 @@
-name: new-pipeline
-account: 59d33c4e9f75220a3710b2ee
+name: new-pipeline-git
metadata:
labels:
repo: github:ArikMaor/ping-server
@@ -9,7 +8,7 @@ spec:
repo: ArikMaor/ping-server
events: [push, pullrequest]
branchRegex: '.'
- contexts: ['lala']
+ contexts: []
variables:
- key: PORT
value: 3000
@@ -19,6 +18,5 @@ spec:
encrypted: true
source:
location: git
- repo: ArikMaor/ping-server
+ repo: codefresh-io/cli
path: codefresh.yml
-
\ No newline at end of file
diff --git a/examples/pipeline2-url.yml b/examples/pipeline2-url.yml
index 0181f1e1c..5619ad19b 100644
--- a/examples/pipeline2-url.yml
+++ b/examples/pipeline2-url.yml
@@ -2,7 +2,7 @@ name: new-pipeline-url
#account: 59d33c4e9f75220a3710b2ee
metadata:
labels:
- repo: github:ArikMaor/ping-server
+ repo: github:codefresh-io/cli
spec:
triggers:
- type: scm
diff --git a/lib/interface/cli/commands/image/get.cmd.js b/lib/interface/cli/commands/image/get.cmd.js
index 66070868c..8f0323208 100644
--- a/lib/interface/cli/commands/image/get.cmd.js
+++ b/lib/interface/cli/commands/image/get.cmd.js
@@ -38,6 +38,12 @@ const command = new Command({
alias: 'l',
default: [],
})
+ .option('tag', {
+ describe: 'Filter by a list of tags',
+ alias: 't',
+ type: Array,
+ default: [],
+ })
.option('sha', {
describe: 'Filter by specific commit sha',
alias: 's',
@@ -58,6 +64,7 @@ const command = new Command({
handler: async (argv) => {
const imageId = argv.id;
const labels = prepareKeyValueFromCLIEnvOption(argv.label);
+ const tags = argv.tag;
const sha = argv.sha;
const limit = argv.limit;
const type = argv.type;
@@ -80,6 +87,7 @@ const command = new Command({
} else {
images = await image.getAll({
labels,
+ tags,
sha,
limit,
filterRegistries,
diff --git a/lib/logic/api/image.js b/lib/logic/api/image.js
index 8c6900ac4..3d661403c 100644
--- a/lib/logic/api/image.js
+++ b/lib/logic/api/image.js
@@ -61,6 +61,7 @@ const getAll = async (options) => {
limit: options.limit,
offset: options.offset,
metadata: options.labels,
+ tag: options.tags,
type: options.type,
branch: options.branch,
imageDisplayNameRegex: options.imageName,
diff --git a/package.json b/package.json
index b4e6738a6..1ff6f278f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "codefresh",
- "version": "0.7.5",
+ "version": "0.7.6",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,