Skip to content

add: noogoo

add: noogoo #9

Workflow file for this run

name: Deploy Production
on:
push:
branches: production
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: Production
steps:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Checkout code
uses: actions/checkout@v2
with:
ref: production
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- 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: ${{ secrets.AWS_REGION }}
- name: Decrypt config
run: npm run decrypt-config -- --passphrase="$ENCRYPT_PASSPHRASE" maildog.config.json.gpg
env:
ENCRYPT_PASSPHRASE: ${{ secrets.ENCRYPT_PASSPHRASE }}
- name: Deploy the CDK toolkit stack
run: npx cdk bootstrap
- name: Deploy maildog
run: npx cdk deploy --require-approval never
env:
ENVIRONMENT_NAME: production
- name: Activate receipt rule set
run: aws ses set-active-receipt-rule-set --rule-set-name MailDog-production-ReceiptRuleSet