Skip to content

Commit b0ee913

Browse files
Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info (#507)
* Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info * Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info * Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info
1 parent 06e132b commit b0ee913

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

workflows/codefresh-csdp/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
3+
## v1.1.8 (22.03.2023)
4+
* Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info
25

36
## v1.1.8 (28.02.2023)
47
* Using @codefresh-io/cf-report-image-toolbox library

workflows/codefresh-csdp/versions/1.1.8/docs/report-image-info.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Report image info to argo platform.
2020
* GCR_KEY_FILE_PATH (required) - JSON key for authenticating to a Google GCR
2121
* GCR_KEY_SECRET (required) - The Kubernetes secret containing the GCR key information. Default is 'gcr-key-file'
2222
* GCR_KEY_SECRET_KEY (optional) - The key in the Kubernetes secret containing the GCR key information. Default is '.keyjson'
23+
* GOOGLE_REGISTRY_HOST (optional) - The host to Google GCR or Google ACR. Default is 'gcr.io'
24+
* GOOGLE_JSON_KEY (required) - The Kubernetes secret with the JSON key for authenticating to a Google GCR or Google ACR
25+
* GOOGLE_KEY_SECRET_KEY (optional) The key in the Kubernetes secret with Google JSON key. Default is 'keyjson'
2326
* AWS_ACCESS_KEY (required) - The Kubernetes secret with the Amazon access key
2427
* AWS_ACCESS_KEY_SECRET_KEY (optional) - The key in the Kubernetes secret with the Amazon access key. Default is 'aws-access-key'
2528
* AWS_SECRET_KEY (required) - The Kubernetes secret with the Amazon secret key

workflows/codefresh-csdp/versions/1.1.8/images/report-image-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"node": "18.12.1"
1111
},
1212
"dependencies": {
13-
"@codefresh-io/cf-report-image-toolbox": "^1.0.0",
13+
"@codefresh-io/cf-report-image-toolbox": "^1.0.4",
1414
"joi": "^17.6.0"
1515
}
1616
}

workflows/codefresh-csdp/versions/1.1.8/images/report-image-info/src/configuration/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const inputs = {
3737
}
3838
},
3939
gcr: {
40+
host: process.env.GOOGLE_REGISTRY_HOST?.trim(),
41+
json: process.env.GOOGLE_JSON_KEY?.trim(),
4042
keyFilePath: process.env.GCR_KEY_FILE_PATH?.trim(),
4143
},
4244
retrieveCredentialsByDomain: process.env.RETRIEVE_CREDENTIALS_BY_DOMAIN?.trim() === 'true'

workflows/codefresh-csdp/versions/1.1.8/images/report-image-info/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,10 @@
665665
"@aws-sdk/util-buffer-from" "3.208.0"
666666
tslib "^2.3.1"
667667

668-
"@codefresh-io/cf-report-image-toolbox@^1.0.0":
669-
version "1.0.0"
670-
resolved "https://registry.yarnpkg.com/@codefresh-io/cf-report-image-toolbox/-/cf-report-image-toolbox-1.0.0.tgz#3f8c6394e5e82d044826f2d751b04a9c776b153f"
671-
integrity sha512-LncgfLcTv+M4aPqOl+rUU0PoMIwRP1pe6OIvd9yAiZYC52cY5FV7gfApGrKFtGtTMqbLK4MBW2/f03DzF4qp2Q==
668+
"@codefresh-io/cf-report-image-toolbox@^1.0.4":
669+
version "1.0.4"
670+
resolved "https://registry.yarnpkg.com/@codefresh-io/cf-report-image-toolbox/-/cf-report-image-toolbox-1.0.4.tgz#823a22484094e65d203ab559a9635ce1c28790cf"
671+
integrity sha512-80YxS+ADLxP+atLupDJsHaMLzc2imylYf75h0CtwEG0eSUPxTdw5J66Sx5fk2i+IuKwyD5m3U0AeGvpQ6sDxDg==
672672
dependencies:
673673
"@aws-sdk/client-sts" "^3.272.0"
674674
"@codefresh-io/docker-reference" "^0.0.11"

workflows/codefresh-csdp/versions/1.1.8/workflowTemplate.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ spec:
297297
default: 'gcr-key-file'
298298
- name: GCR_KEY_SECRET_KEY
299299
default: '.keyjson'
300+
- name: GOOGLE_REGISTRY_HOST
301+
default: 'gcr.io'
302+
- name: GOOGLE_JSON_KEY
303+
default: 'cf-not-exist'
304+
- name: GOOGLE_KEY_SECRET_KEY
305+
default: 'keyjson'
300306
- name: DOCKER_CONFIG_SECRET
301307
default: 'docker-registry'
302308
- name: DOCKER_CONFIG_SECRET_KEY
@@ -340,6 +346,14 @@ spec:
340346
value: '{{ inputs.parameters.CF_HOST_URL }}'
341347
- name: GCR_KEY_FILE_PATH
342348
value: '{{ inputs.parameters.GCR_KEY_FILE_PATH }}'
349+
- name: GOOGLE_REGISTRY_HOST
350+
value: '{{ inputs.parameters.GOOGLE_REGISTRY_HOST }}'
351+
- name: GOOGLE_JSON_KEY
352+
valueFrom:
353+
secretKeyRef:
354+
name: '{{ inputs.parameters.GOOGLE_JSON_KEY }}'
355+
optional: true
356+
key: '{{ inputs.parameters.GOOGLE_KEY_SECRET_KEY }}'
343357
- name: DOCKER_CONFIG_FILE_PATH
344358
value: '{{ inputs.parameters.DOCKER_CONFIG_FILE_PATH }}'
345359
- name: RETRIEVE_CREDENTIALS_BY_DOMAIN

0 commit comments

Comments
 (0)