diff --git a/.drone.yml b/.drone.yml index 8051a641..69fb3612 100644 --- a/.drone.yml +++ b/.drone.yml @@ -82,7 +82,7 @@ steps: commands: - apk add --no-cache aws-cli bash git openssh-client make rsync - npm install --legacy-peer-deps - - make prod + - make build-test - aws s3 sync build s3://instat-frontend-test --delete - aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*" diff --git a/Makefile b/Makefile index 721b745d..6dd9dc1c 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,13 @@ build-stage: clean REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ npm run build +build-test: clean + REACT_APP_TYPE=ott \ + REACT_APP_ENV=staging \ + REACT_APP_STAGE=test \ + REACT_APP_CLIENT=insports \ + npm run build + build-a: clean REACT_APP_TYPE=ott \ REACT_APP_ENV=staging \ diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index 026dd1bf..9c206a49 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -5,7 +5,7 @@ declare namespace NodeJS { export interface ProcessEnv { REACT_APP_CLIENT: 'instat' | 'facr' | 'lff' | 'insports', REACT_APP_ENV: 'production' | 'preproduction' | 'staging', - REACT_APP_STAGE: 'staging' | 'test-a' | 'test-b' | 'test-c' | 'test-d' | 'test-e' | 'test-f' | 'test-g' | 'test-h' | 'test-i', + REACT_APP_STAGE: 'staging' | 'test-a' | 'test-b' | 'test-c' | 'test-d' | 'test-e' | 'test-f' | 'test-g' | 'test-h' | 'test-i' | 'test', REACT_APP_TYPE: 'auth-service' | 'ott', } }