Skip to content

Commit f52ee96

Browse files
CR11315readme (#35)
* readme change * bump Co-authored-by: saffi <[email protected]>
1 parent 4b19320 commit f52ee96

File tree

3 files changed

+87
-9
lines changed

3 files changed

+87
-9
lines changed

README.md

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# csdp-report-image
22
This repository builds a container image that reports created image to Codefresh, for CI tools use.
3+
Providing parameters is done by having CF_ prefixed environment variables.
34

45
## Required
56
* CF_API_KEY
@@ -8,9 +9,90 @@ This repository builds a container image that reports created image to Codefresh
89

910
## Empty by Default
1011
* CF_ENRICHERS: git, jira
11-
* specify enrich/integrate section to include.
12+
* specify enrich/integrate section to include.
1213
* CF_CI_TYPE: github-actions
1314
* specify the Calling type
1415

15-
## see field details at your installed cluster:
16-
* https://yourcluster.company.io/app-proxy/api/image-report
16+
## Sections
17+
The environment variables are divided to sections and the use is controlled by the CF_ENRICHERS.
18+
For each specific connection (such as jira) parameters can be provided explicitly or by naming the integration
19+
* either use single var CF_JIRA_INTEGRATION (provide the name) or specify all variables in explicit-jira-setup
20+
* Bellow is the list of all the CF_ environment variables.
21+
22+
23+
### mandatory
24+
- #### CF_IMAGE
25+
- **description**: Image name reported
26+
- required
27+
- #### CF_CONTAINER_REGISTRY_INTEGRATION
28+
- **description**: Registry integration name
29+
- #### CF_DOCKERHUB_PASSWORD
30+
- **description**: When no registry integration is specified: dockerhub token as password
31+
- ["examples",["****"]]
32+
- #### CF_DOCKERHUB_USERNAME
33+
- **description**: When no registry integration is specified: dockerhub username
34+
- ["examples",["username"]]
35+
- #### CF_REGISTRY_PASSWORD
36+
- **description**: When no registry integration is specified: registry token/password
37+
- ["examples",["****"]]
38+
- #### CF_REGISTRY_USERNAME
39+
- **description**: When no registry integration is specified: registry username
40+
- ["examples",["username"]]
41+
- #### CF_REGISTRY_DOMAIN
42+
- **description**: When no registry integration is specified: registry domain
43+
- ["examples",["quay.com"]]
44+
- #### CF_ENRICHERS
45+
- **description**: List of integrations for collecting metadata on the build image
46+
- #### CF_REGISTRY_INSECURE
47+
- **description**:
48+
- #### CF_WORKFLOW_NAME
49+
- **description**: Given workflow name parameter.
50+
- #### CF_WORKFLOW_URL
51+
- **description**: Reported url of the workflow building the image.
52+
- ["examples",["https://github.com/saffi-codefresh/csdp-report-image-github-action/actions/runs/2389116616"]]
53+
- #### CF_LOGS_URL
54+
- **description**: Logs url
55+
- #### CF_CI_TYPE
56+
- **description**: Name of integration type i.e: git-action
57+
### git
58+
- #### CF_GIT_BRANCH
59+
- **description**: The git branch which is related for the commit
60+
- #### CF_GIT_REPO
61+
- **description**: The the git repository used for building the image
62+
- required
63+
### explicit-git-setup
64+
- #### CF_GIT_PROVIDER
65+
- **description**: The git integration type use (i.e. github)
66+
- required
67+
### github
68+
- #### CF_GITHUB_TOKEN
69+
- **description**: Github authentication token
70+
- required
71+
- ["examples",["ghp_vVvA6oh5iCO...."]]
72+
- #### CF_GITHUB_API_URL
73+
- **description**: Specify github host api url
74+
- ["examples",["https://api.github.com"]]
75+
### jira
76+
- #### CF_JIRA_PROJECT_PREFIX
77+
- **description**: Jira prefix for identifying the ticket number to use
78+
- required
79+
- ["examples",["CR"]]
80+
- #### CF_JIRA_MESSAGE
81+
- **description**: the message
82+
- required
83+
- ["examples",["fix CR-11312 "]]
84+
- #### CF_JIRA_FAIL_ON_NOT_FOUND
85+
- **description**: Fail pipeline if 'issue' not found
86+
- #### CF_JIRA_INTEGRATION
87+
- **description**: When jira integration name is specified instead of providing explicit credentials
88+
### explicit-jira-setup
89+
- #### CF_JIRA_API_TOKEN
90+
- **description**: When no jira integration is specified: Jira token for authenticating
91+
- required
92+
- #### CF_JIRA_EMAIL
93+
- **description**: When no jira integration is specified: user email for authenticating with jira
94+
- required
95+
- #### CF_JIRA_HOST_URL
96+
- **description**: When no jira integration is specified: The jira server url
97+
- required
98+
- ["examples",["https://codefresh-io.atlassian.net"]]

action.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
VERSION:
55
description: specify client version
66
required: false
7-
default: 0.0.41
7+
default: 0.0.43
88
CF_API_KEY:
99
description: "Codefresh API KEY"
1010
required: true
@@ -58,9 +58,6 @@ inputs:
5858
CF_GIT_BRANCH:
5959
required: false
6060
description: "The git branch to use to enrich"
61-
CF_GIT_SHA:
62-
required: false
63-
description: "The git SHA to use to enrich"
6461
CF_GIT_INTEGRATION:
6562
required: false
6663
description: "The integration key"
@@ -122,7 +119,6 @@ runs:
122119
CF_GIT_PROVIDER: ${{ inputs.CF_GIT_PROVIDER }}
123120
CF_GIT_REPO: ${{ inputs.CF_GIT_REPO }}
124121
CF_GIT_BRANCH: ${{ inputs.CF_GIT_BRANCH }}
125-
CF_GIT_SHA: ${{ inputs.CF_GIT_SHA }}
126122
CF_GIT_INTEGRATION: ${{ inputs.CF_GIT_INTEGRATION }}
127123
## Github
128124
CF_GITHUB_TOKEN: ${{ inputs.CF_GITHUB_TOKEN }}

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: csdp-report-image
2-
version: 0.0.42
2+
version: 0.0.43

0 commit comments

Comments
 (0)