-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (41 loc) · 1.49 KB
/
deploy_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
workflow_run:
workflows: ["Code quality"]
branches: [ "develop" ]
types:
- completed
name: Release - develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: Develop
steps:
- uses: actions/checkout@v3
with:
ref: 'develop'
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci && cd src/api/http && npm ci && cd .. && cd websocket && npm ci
- name: Build
run: npm run build
env:
VITE_APP_NAME: 'Activity timer'
VITE_APP_KEY: ${{ secrets.ACT_APP_KEY }}
VITE_API_HOST: ${{ secrets.ACT_API_HOST }}
VITE_WEBSOCKET: ${{ secrets.ACT_WEBSOCKET }}
VITE_OPTRO_API_KEY: ${{ secrets.ACT_OPTRO_API_KEY }}
VITE_POWERUP_ID: ${{ secrets.ACT_POWERUP_ID }}
VITE_SENTRY_DSN: ${{ secrets.ACT_SENTRY_DSN }}
VITE_APP_ORIGIN: ${{ secrets.ACT_APP_ORIGIN }}
VITE_MAILCHIMP_LINK: ${{ secrets.ACT_MAILCHIMP_LINK }}
- name: cdk deploy
env:
ACT_ENV: 'dev'
AWS_ACCESS_KEY_ID: ${{ secrets.V2_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.V2_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'eu-west-1'
TRELLO_SECRET: ${{ secrets.ACT_TRELLO_SECRET }}
run: cd infrastructure && npm ci && npx cdk bootstrap && npx cdk deploy --require-approval never