Skip to content

Commit 9db1d6b

Browse files
Cr 16693 (#544)
* fix pipeline yaml to use version from step yaml * fix pipeline * wip * wip
1 parent a7fc1f7 commit 9db1d6b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

incubating/prisma-cloud/codefresh.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,27 @@ steps:
77
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
88
git: "cf_github"
99
revision: '${{CF_REVISION}}'
10+
11+
GettingPluginVersion:
12+
title: Getting Plugin Version
13+
image: codefresh/cli
14+
commands:
15+
- cf_export PLUGIN_VERSION=$(yq -r .metadata.version ./steps/incubating/prisma-cloud/step.yaml)
16+
1017
BuildImage:
1118
title: Building Docker Image
1219
type: build
1320
working_directory: "./steps/incubating/prisma-cloud"
1421
dockerfile: "Dockerfile"
1522
image_name: codefreshplugins/cfstep-prisma-cloud
1623

17-
PushingToRegistries:
24+
PushingToRegistries:
1825
title: Pushing to Registry
1926
type: push
2027
candidate: ${{BuildImage}}
2128
tags:
2229
- "latest"
23-
- "1.0.0"
30+
- "${{PLUGIN_VERSION}}"
2431
when:
2532
branch:
2633
only:

0 commit comments

Comments
 (0)