Added and entrypoint.sh who replaces all REACT_APP_BACKEND_URL vars after npm build with Exported REACT_APP_BACKEND_URL env var
Allowing to not have to use specific builds for the front in the future (ex : datatalas-front:dev-industries )
The back url can now be declared at image deployment time with the variable REACT_APP_BACKEND_URL=https://backurl
Added a github file ci build-front.yml which should be the only file in the .github/worflows folder at maturity (except the lint ci files)
The file build-front.yml seems dedicated to industries, because tags mentioned it. It could be interesting to configure general tags ?
You're right, I've updated the file build-front.yml
Added and entrypoint.sh who replaces all
REACT_APP_BACKEND_URL
vars after npm build with ExportedREACT_APP_BACKEND_URL
env varAllowing to not have to use specific builds for the front in the future (ex : datatalas-front:dev-industries ) The back url can now be declared at image deployment time with the variable
REACT_APP_BACKEND_URL=https://backurl
Added a github file ci
build-front.yml
which should be the only file in the.github/worflows
folder at maturity (except the lint ci files)