Skip to content

Commit 148e694

Browse files
committed
Add registry type inputs
1 parent f247765 commit 148e694

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/actions/build-push-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
aws_region:
1010
description: "aws region to use"
1111
required: true
12-
registry_type:
12+
ecr_registry_type:
1313
description: "type of registry (public|private)"
1414
required: false
1515
default: "private"
@@ -46,7 +46,7 @@ runs:
4646
id: login-ecr
4747
uses: aws-actions/[email protected]
4848
with:
49-
registry-type: ${{ inputs.registry_type }}
49+
registry-type: ${{ inputs.ecr_registry_type }}
5050
- name: get image tag
5151
id: get-image-tag
5252
run: |

.github/actions/get-ecr-scan-result/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
aws_region:
1010
description: "aws region to use"
1111
required: true
12-
registry_type:
12+
ecr_registry_type:
1313
description: "type of registry (public|private)"
1414
required: false
1515
default: "private"
@@ -54,6 +54,8 @@ runs:
5454
- name: Login to Amazon ECR
5555
id: login-ecr
5656
uses: aws-actions/[email protected]
57+
with:
58+
registry-type: ${{ inputs.ecr_registry_type }}
5759
- name: Get AWS ECR Scan results
5860
id: get-scan-results
5961
run: |

.github/actions/retag-image/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
aws_region:
1010
description: "aws region to use"
1111
required: true
12-
registry_type:
12+
ecr_registry_type:
1313
description: "type of registry (public|private)"
1414
required: false
1515
default: "private"
@@ -34,6 +34,8 @@ runs:
3434
- name: Login to Amazon ECR
3535
id: login-ecr
3636
uses: aws-actions/[email protected]
37+
with:
38+
registry-type: ${{ inputs.ecr_registry_type }}
3739
- name: retag image
3840
run: |
3941
mapfile -t array < <(echo "${REPOSITORY_NAMES}" | tr ',' "\n")

.github/workflows/build-docker-artifacts-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
source_images: ${{ fromJson(steps.get-customer.outputs.result).source_images }}
109109
destination_aws_role: ${{ steps.get-aws-image-config.outputs.aws_role }}
110110
destination_aws_region: ${{ steps.get-aws-image-config.outputs.aws_region }}
111-
destination_registry_type: ${{ steps.get-aws-image-config.outputs.registry_type }}
112111
destination_aws_access_key_id: ${{ steps.get-aws-image-config.outputs.aws_access_key_id }}
113112
destination_aws_secret_access_key: ${{ steps.get-aws-image-config.outputs.aws_secret_access_key }}
113+
destination_ecr_registry_type: ${{ steps.get-aws-image-config.outputs.ecr_registry_type }}
114114
destination_images: ${{ fromJson(steps.get-customer.outputs.result).destination_images }}

0 commit comments

Comments
 (0)