-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Login to ECR | ||
description: Login to ECR | ||
branding: | ||
color: orange | ||
icon: corner-right-up | ||
inputs: | ||
role-to-assume: | ||
description: role to access AWS | ||
required: true | ||
aws-region: | ||
description: aws region | ||
default: us-east-1 | ||
required: false | ||
role-session-name: | ||
description: AWS role session name | ||
required: false | ||
|
||
outputs: | ||
registry: | ||
value: ${{ steps.ecr.outputs.registry }} | ||
description: ECR host | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- | ||
name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ inputs.role-to-assume }} | ||
role-session-name: ${{ inputs.role-session-name }} | ||
aws-region: ${{ inputs.aws-region }} | ||
- | ||
name: Login to Amazon ECR | ||
id: ecr | ||
uses: aws-actions/amazon-ecr-login@v2 | ||
with: | ||
mask-password: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters