Skip to content

Commit 83bfa55

Browse files
add support for CF_RUNTIME_NAME (#491)
* add support for CF_RUNTIME_NAME * add support for CF_RUNTIME_NAME
1 parent cc0e064 commit 83bfa55

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

incubating/codefresh-report-image/step.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ kind: step-type
22
version: '1.0'
33
metadata:
44
name: codefresh-report-image
5-
version: 1.0.2
5+
version: 1.0.3
66
isPublic: true
77
description: Report Docker Image Metadata to Codefresh CD
88
sources:
@@ -29,7 +29,7 @@ metadata:
2929
arguments:
3030
CF_API_KEY: codefresh-cd-api-token
3131
CF_IMAGE: docker.io/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}:${{CF_REVISION}}
32-
CF_HOST: https://codefresh.mydomain.com
32+
CF_RUNTIME_NAME: codefresh-hosted
3333
- description: report-image-metadata-all
3434
workflow:
3535
ReportImageMetadataAll:
@@ -39,7 +39,7 @@ metadata:
3939
arguments:
4040
CF_API_KEY: codefresh-cd-api-token
4141
CF_IMAGE: docker.io/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}:${{CF_REVISION}}
42-
CF_HOST: https://codefresh.mydomain.com
42+
CF_RUNTIME_NAME: codefresh-hosted
4343
CF_ENRICHERS: ${{CF_ENRICHERS}}
4444
CF_GITHUB_TOKEN: ${{GITHUB_TOKEN}}
4545
CF_GIT_PROVIDER: github
@@ -60,8 +60,7 @@ spec:
6060
"patterns": [],
6161
"required": [
6262
"CF_API_KEY",
63-
"CF_IMAGE",
64-
"CF_HOST"
63+
"CF_IMAGE"
6564
],
6665
"properties": {
6766
"CF_API_KEY": {
@@ -109,6 +108,10 @@ spec:
109108
"type": "string",
110109
"description": "Codefresh Runtime Ingress URL. (ie. https://codefresh.mycompany.com)"
111110
},
111+
"CF_RUNTIME_NAME": {
112+
"type": "string",
113+
"description": "Name of runtime to implement the enrichment"
114+
},
112115
"CF_JIRA_API_TOKEN": {
113116
"type": "string",
114117
"description": "When no jira integration is specified: Jira token for authenticating."
@@ -186,6 +189,7 @@ spec:
186189
environment:
187190
- CF_CI_TYPE=classic
188191
- CF_WORKFLOW_URL=${{CF_BUILD_URL}}
192+
- CF_WORKFLOW_NAME=${{CF_PIPELINE_NAME}}
189193
[[ range $key, $val := .Arguments ]]
190194
- '[[ $key ]]=[[ $val ]]'
191195
[[- end ]]

0 commit comments

Comments
 (0)