Skip to content

Commit

Permalink
Remove new relic env var
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Sep 10, 2024
1 parent f096d74 commit 159eb5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ jobs:

- name: Build and push Docker image to Amazon ECR
env:
APP_ENV: production
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
NEXT_PUBLIC_APP_ENV: production
ECR_URL: 946183545209.dkr.ecr.us-east-1.amazonaws.com/research-catalog:production-latest
run: |
docker build --build-arg APP_ENV=$APP_ENV --build-arg NEW_RELIC_LICENSE_KEY=$NEW_RELIC_LICENSE_KEY --tag $LOCAL_TAG_NAME .
docker build --build-arg NEXT_PUBLIC_APP_ENV=$NEXT_PUBLIC_APP_ENV --tag $LOCAL_TAG_NAME .
docker tag $LOCAL_TAG_NAME $ECR_URL
docker push $ECR_URL
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/deploy_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- qa
- SCC-4218/move-rc-from-travis-to-github-actions

permissions:
id-token: write
Expand Down Expand Up @@ -33,14 +34,13 @@ jobs:

- name: Build and push Docker image to Amazon ECR
env:
APP_ENV: qa
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
ECR_URL: 946183545209.dkr.ecr.us-east-1.amazonaws.com/research-catalog:qa-latest
NEXT_PUBLIC_APP_ENV: qa
ECR_URL: 946183545209.dkr.ecr.us-east-1.amazonaws.com/research-catalog:$NEXT_PUBLIC_APP_ENV-latest
run: |
docker build --build-arg APP_ENV=$APP_ENV --build-arg NEW_RELIC_LICENSE_KEY=$NEW_RELIC_LICENSE_KEY --tag $LOCAL_TAG_NAME .
docker build --build-arg NEXT_PUBLIC_APP_ENV=$NEXT_PUBLIC_APP_ENV --tag $LOCAL_TAG_NAME .
docker tag $LOCAL_TAG_NAME $ECR_URL
docker push $ECR_URL
# docker push $ECR_URL
- name: Update ECS service
run: |
aws ecs update-service --cluster research-catalog-qa --service research-catalog-qa --force-new-deployment
# - name: Update ECS service
# run: |
# aws ecs update-service --cluster research-catalog-qa --service research-catalog-qa --force-new-deployment

0 comments on commit 159eb5b

Please sign in to comment.