Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ecr-multi-arch-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ jobs:
if: ${{ steps.buildcheck.outputs.ruby_repo == '1' }}
uses: ruby/setup-ruby@v1 # by default, this uses the .ruby-version file to set the version

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ inputs.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCT_DEV }}:role/${{ inputs.GHA_ROLE }}

- name: Run pre-build steps
# Only run this step if the app developer has specified "pre-build" commands
# in the caller workflow.
Expand All @@ -155,12 +161,6 @@ jobs:
PREBUILD: ${{ inputs.PREBUILD }}
run: ${PREBUILD}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ inputs.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCT_DEV }}:role/${{ inputs.GHA_ROLE }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ecr-multi-arch-deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ jobs:
if: ${{ steps.buildcheck.outputs.ruby_repo == '1' }}
uses: ruby/setup-ruby@v1 # by default, this uses the .ruby-version file to set the version

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ inputs.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCT_STAGE }}:role/${{ inputs.GHA_ROLE }}

- name: Run pre-build steps
# Only run this step if the app developer has specified "pre-build" commands
# in the caller workflow.
Expand All @@ -147,12 +153,6 @@ jobs:
PREBUILD: ${{ inputs.PREBUILD }}
run: ${PREBUILD}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ inputs.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCT_STAGE }}:role/${{ inputs.GHA_ROLE }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
Expand Down