fix(#india): fix build india

keep-around/44e70269ba4e4c3ea8c912424bbb3a0e479f07f4
Andrei Dekterev 3 years ago
parent fb76eaa14e
commit 1dc9da94fc
  1. 11
      .drone.yml
  2. 3
      .gitignore
  3. 44
      Makefile

@ -30,6 +30,7 @@ steps:
REACT_APP_STRIPE_PK: REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK from_secret: REACT_APP_STRIPE_PK
commands: commands:
- apk add --no-cache make
- make prod - make prod
depends_on: depends_on:
- npm-install - npm-install
@ -57,6 +58,7 @@ steps:
REACT_APP_STRIPE_PK: REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK from_secret: REACT_APP_STRIPE_PK
commands: commands:
- apk add --no-cache make
- make auth-production-build - make auth-production-build
depends_on: depends_on:
- npm-install - npm-install
@ -95,7 +97,8 @@ steps:
REACT_APP_STRIPE_PK: REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK from_secret: REACT_APP_STRIPE_PK
commands: commands:
- make india-build - apk add --no-cache make
- make india-prod
depends_on: depends_on:
- npm-install - npm-install
@ -120,7 +123,8 @@ steps:
REACT_APP_STRIPE_PK: REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK from_secret: REACT_APP_STRIPE_PK
commands: commands:
- make facr-build - apk add --no-cache make
- make facr-prod
depends_on: depends_on:
- npm-install - npm-install
@ -145,7 +149,8 @@ steps:
REACT_APP_STRIPE_PK: REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK from_secret: REACT_APP_STRIPE_PK
commands: commands:
- make lff-build - apk add --no-cache make
- make lff-prod
depends_on: depends_on:
- npm-install - npm-install

3
.gitignore vendored

@ -11,6 +11,9 @@
# production # production
/build /build
/build_auth /build_auth
/build_india
/build_facr
/build_lff
# misc # misc
.DS_Store .DS_Store

@ -120,24 +120,20 @@ auth-production-build:
facr-build: clean facr-build: clean
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=staging \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_CLIENT=facr \
BUILD_PATH=build_facr \
npm run build npm run build
india-build: clean india-build: clean
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=staging \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_CLIENT=india \
BUILD_PATH=build_india \
npm run build npm run build
lff-build: clean lff-build: clean
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=staging \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
REACT_APP_CLIENT=lff \ REACT_APP_CLIENT=lff \
BUILD_PATH=build_lff \
npm run build npm run build
.PHONY: build .PHONY: build
@ -149,10 +145,6 @@ prod: clean
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
npm run build && cp -r .well-known build npm run build && cp -r .well-known build
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/wwwroot/
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/wwwroot/
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/wwwroot/
preprod: clean preprod: clean
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=preproduction \ REACT_APP_ENV=preproduction \
@ -161,34 +153,32 @@ preprod: clean
REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW \ REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW \
npm run build npm run build
india-prod: clean india-prod:
rm -rf build_india && \
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=production \
REACT_APP_CLIENT=india \ REACT_APP_CLIENT=india \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
npm run build && cp -r .well-known build BUILD_PATH=build_india \
npm run build && cp -r .well-known build_india
facr-prod: clean facr-prod:
rm -rf build_facr && \
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=production \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
REACT_APP_CLIENT=facr \ REACT_APP_CLIENT=facr \
npm run build BUILD_PATH=build_facr \
npm run build && cp -r .well-known build_facr
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/facr-wwwroot/
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/facr-wwwroot/
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/facr-wwwroot/
lff-prod: clean lff-prod:
rm -rf build_lff && \
REACT_APP_TYPE=ott \ REACT_APP_TYPE=ott \
REACT_APP_ENV=production \ REACT_APP_ENV=production \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
REACT_APP_CLIENT=lff \ REACT_APP_CLIENT=lff \
npm run build BUILD_PATH=build_lff \
npm run build && cp -r .well-known build_lff
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/lff-wwwroot/
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/lff-wwwroot/
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/lff-wwwroot/
deploy-all: prod preprod facr-prod lff-prod deploy-all: prod preprod facr-prod lff-prod

Loading…
Cancel
Save