File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ if [ ! -f .env ]; then
3
+ export FRONTEND_BUILD_CONTEXT=" https://${GH_TOKEN} @${FRONTEND_REPO_URL} #${FRONTEND_REF} "
4
+ export API_BUILD_CONTEXT=" https://${GH_TOKEN} @${API_REPO_URL} #${API_REF} "
5
+ export BACKEND_BUILD_CONTEXT=" https://${GH_TOKEN} @${BACKEND_REPO_URL} #${BACKEND_REF} "
6
+ echo " FRONTEND_BUILD_CONTEXT=${FRONTEND_BUILD_CONTEXT} " >> .env
7
+ echo " API_BUILD_CONTEXT=${API_BUILD_CONTEXT} " >> .env
8
+ echo " BACKEND_BUILD_CONTEXT=${BACKEND_BUILD_CONTEXT} " >> .env
9
+ fi
2
10
3
11
source .env
4
12
@@ -15,4 +23,4 @@ docker compose exec nginx nginx -s reload
15
23
docker rm nginx_tmp
16
24
17
25
# Run Docker Compose without local volumes
18
- docker-compose --profile core up --build --no-deps -d
26
+ docker-compose --profile core up --build --no-deps
You can’t perform that action at this time.
0 commit comments