1
1
# csdp-report-image
2
2
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.
3
4
4
5
## Required
5
6
* CF_API_KEY
@@ -8,9 +9,90 @@ This repository builds a container image that reports created image to Codefresh
8
9
9
10
## Empty by Default
10
11
* CF_ENRICHERS: git, jira
11
- * specify enrich/integrate section to include.
12
+ * specify enrich/integrate section to include.
12
13
* CF_CI_TYPE: github-actions
13
14
* specify the Calling type
14
15
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" ]]
0 commit comments