-
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.
chore: adjusts docker image configuration
- Loading branch information
Showing
6 changed files
with
88 additions
and
6 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
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,34 @@ | ||
name: Reusable steps for ecr login job | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
AWS_PULL_ECR_ACCESS_KEY_ID: | ||
required: true | ||
AWS_PULL_ECR_SECRET_ACCESS_KEY: | ||
required: true | ||
outputs: | ||
registry: | ||
description: "registry from login" | ||
value: ${{ jobs.configure_aws.outputs.registry }} | ||
docker_username: | ||
description: "registry from login" | ||
value: ${{ jobs.configure_aws.outputs.docker_username }} | ||
docker_password: | ||
description: "registry from login" | ||
value: ${{ jobs.configure_aws.outputs.docker_password }} | ||
|
||
jobs: | ||
configure_aws: | ||
runs-on: small-runner-on-demand | ||
steps: | ||
- name: Configure AWS credentials and login | ||
uses: pagarme/github-actions-workflows/.github/reusable-ecr-login@main | ||
id: login-ecr | ||
with: | ||
AWS_PULL_ECR_ACCESS_KEY_ID: ${{ secrets.AWS_PULL_ECR_ACCESS_KEY_ID }} | ||
AWS_PULL_ECR_SECRET_ACCESS_KEY: ${{ secrets.AWS_PULL_ECR_SECRET_ACCESS_KEY }} | ||
outputs: | ||
registry: ${{ steps.login-ecr.outputs.registry }} | ||
docker_username: ${{ steps.login-ecr.outputs.docker_username }} # More information on these outputs can be found below in the 'Docker Credentials' section | ||
docker_password: ${{ steps.login-ecr.outputs.docker_password }} |
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,35 @@ | ||
name: Reusable steps for ecr login | ||
description: this will be used to login in to docker-images ecr to download the pre-build images | ||
|
||
inputs: | ||
AWS_PULL_ECR_ACCESS_KEY_ID: | ||
description: 'ECR KEY ID for pull docker-image ecr' | ||
required: true | ||
AWS_PULL_ECR_SECRET_ACCESS_KEY: | ||
required: true | ||
description: 'ECR SECRET KEY for pull docker-image ecr' | ||
outputs: | ||
registry: | ||
description: "registry from login" | ||
value: ${{ steps.login-ecr.outputs.registry }} | ||
docker_username: | ||
description: "username for login" | ||
value: ${{ steps.login-ecr.outputs.docker_username_697525377503_dkr_ecr_us_east_1_amazonaws_com }} | ||
docker_password: | ||
description: "password for login" | ||
value: ${{ steps.login-ecr.outputs.docker_password_697525377503_dkr_ecr_us_east_1_amazonaws_com }} | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v3 | ||
id: configure-ecr | ||
with: | ||
aws-access-key-id: ${{ inputs.AWS_PULL_ECR_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ inputs.AWS_PULL_ECR_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
mask-aws-account-id: "no" | ||
- name: Login no Elastic Container Registry / ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 |
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
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
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