Skip to content

Commit 12e3d0d

Browse files
script to build web image
1 parent 0c5b7f8 commit 12e3d0d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build_web.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
environment=$1
2+
repo=$2
3+
4+
if [[ $environment == "prod" ]]; then
5+
api_url="shop-quoting-tool.coverme.gov"
6+
else
7+
api_url=$environment-'-aeqt.cme.openhbx.org'
8+
fi
9+
10+
docker build --platform linux/amd64 --build-arg CLIENT='me' \
11+
--build-arg API_URL=$api_url \
12+
--build-arg PATH='/app/node_modules/.bin' \
13+
-f .docker/production/Dockerfile.web -t $2:me-aeqt-web-$1 .
14+
sleep 10
15+
docker push $2:me-aeqt-web-$1

0 commit comments

Comments
 (0)