Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating iam role for prod deployment #110

Merged
merged 1 commit into from
Aug 5, 2024
Merged
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REGISTRY_API_DOMAIN=https://qa-libraryregistry.librarysimplified.org/admin
REGISTRY_API_DOMAIN=https://libraryregistry.librarysimplified.org/admin
12 changes: 7 additions & 5 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# On merge to production, build a container and deploy to ECR
# On merge to production, build a container and deploy to ECR and ECS on `nypl` account
name: Publish to production environment

on:
pull_request:
branches: [production]
types: [closed]

permissions:
id-token: write
contents: read

jobs:
publish_qa:
Expand All @@ -17,10 +20,9 @@ jobs:
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.NYPL_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.NYPL_AWS_SECRET_KEY }}
role-to-assume: arn:aws:iam::463786892988:role/GithubActionsDeployerRole
aws-region: us-east-1

- name: Login to Amazon ECR
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-qa.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Note: No AWS QA environment at the moment.
# On merge to master, build a container and deploy to ECR
name: Publish to QA environment

Expand Down
Loading