Skip to content

Commit

Permalink
Github Migration
Browse files Browse the repository at this point in the history
Signed-off-by: csavulalfx <cavula@contractor.linuxfoundation.org>
  • Loading branch information
csavulalfx committed Mar 5, 2024
1 parent 522a9f9 commit 8972429
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Dev Deployment Workflow
on:
push:
branches:
- feat/circleci-to-gha
- main

jobs:
build_dev:
Expand Down
26 changes: 21 additions & 5 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-1
role-duration-seconds: 900

- name: Install Top Level Dependencies
run: yarn install

- name: Install Edge Dependencies
run: yarn install

- name: Build prod
run: yarn build:${STAGE}
run: yarn build:prod

- name: Build Edge
run: |
Expand Down Expand Up @@ -66,8 +72,14 @@ jobs:
aws-region: us-east-1
role-duration-seconds: 900

- name: Install Top Level Dependencies
run: yarn install

- name: Install Edge Dependencies
run: yarn install

- name: Build prod
run: yarn build:${STAGE}
run: yarn build:prod

- name: Build Edge
run: |
Expand All @@ -78,17 +90,21 @@ jobs:
- name: Deploy Cloudfront and LambdaEdge
run: |
SLS_DEBUG=* yarn sls deploy --stage="${STAGE}" --verbose
env:
STAGE: prod

- name: Deploy Frontend Bucket
run: |
SLS_DEBUG=* yarn sls client deploy --stage="${STAGE}" --verbose --no-confirm
env:
STAGE: prod

- name: Invalidate Cloudfront Cache
run: |
aws --region ${AWS_REGION} cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths "/*"
aws --region us-east-1 cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/*"
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY_ID: ${{ secrets.AWS_SECRET_KEY }}
STAGE: prod
ROOT_DOMAIN: communitybridge.org
PRODUCT_DOMAIN: easycla.communitybridge.org
DISTRIBUTION_ID: E2IOYBQJKK668Q

0 comments on commit 8972429

Please sign in to comment.