Skip to content

Commit

Permalink
Move aws credentials to main action
Browse files Browse the repository at this point in the history
  • Loading branch information
kipparker committed Feb 20, 2024
1 parent 453d8d2 commit 4ef4193
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/templates/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ inputs:
runs:
using: "composite"
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Install Copilot CLI
uses: ksivamuthu/aws-copilot-github-action@v0.0.1
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy_authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Deploy authentication
uses: ./.github/templates/deploy/
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy_resource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Deploy authentication
uses: ./.github/templates/deploy/
with:
Expand Down

0 comments on commit 4ef4193

Please sign in to comment.