Skip to content

Commit

Permalink
chore(ci): adding in shares api
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Aug 16, 2024
1 parent 54f5357 commit 6975b80
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- Shareable Lists API
- Shared Snowplow Consumer
- Shares API
- Transactional Emails
types: [ completed ]

jobs:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/transactional-emails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Transactional Emails
on:
pull_request:
paths:
- 'infrastructure/transactional-emails/**'
- 'packages/**'
- 'lambdas/transactional-emails/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/transactional-emails.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev

jobs:
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: transactional-emails-cdk
stack-output-path: infrastructure/transactional-emails/cdktf.out/stacks/transactional-emails
secrets: inherit

lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: transactional-emails
sentry-project: transactional-emails
s3-bucket-pattern: pocket-transactionalemails-{0}-sqs-event-consumer
codedeploy-app-name-pattern: TransactionalEmails-{0}-Sqs-Event-Consumer-Lambda
codedeploy-group-name-pattern: TransactionalEmails-{0}-Sqs-Event-Consumer-Lambda
function-name-pattern: TransactionalEmails-{0}-Sqs-Event-Consumer-Function
secrets: inherit

sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [lambda]
with:
sentry-project: transactional-emails
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit

0 comments on commit 6975b80

Please sign in to comment.