keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Dmitry Kosolapov home 3 years ago
parent 7b63c93922
commit 0a39689571
  1. 2
      .drone.yml
  2. 7
      Makefile
  3. 2
      src/react-app-env.d.ts

@ -82,7 +82,7 @@ steps:
commands: commands:
- apk add --no-cache aws-cli bash git openssh-client make rsync - apk add --no-cache aws-cli bash git openssh-client make rsync
- npm install --legacy-peer-deps - npm install --legacy-peer-deps
- make prod - make build-test
- aws s3 sync build s3://instat-frontend-test --delete - aws s3 sync build s3://instat-frontend-test --delete
- aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*" - aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*"

@ -22,6 +22,13 @@ build-stage: clean
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
npm run build 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 build-a: clean
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \ REACT_APP_ENV=staging \

@ -5,7 +5,7 @@ declare namespace NodeJS {
export interface ProcessEnv { export interface ProcessEnv {
REACT_APP_CLIENT: 'instat' | 'facr' | 'lff' | 'insports', REACT_APP_CLIENT: 'instat' | 'facr' | 'lff' | 'insports',
REACT_APP_ENV: 'production' | 'preproduction' | 'staging', 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', REACT_APP_TYPE: 'auth-service' | 'ott',
} }
} }

Loading…
Cancel
Save