Include nginx in deploy_all.sh
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
76dbd9b509
commit
7ceaa78bb8
@ -2,7 +2,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
build*
|
|
||||||
dist
|
dist
|
||||||
data/*
|
data/*
|
||||||
*.env*
|
*.env*
|
||||||
|
2
.env
2
.env
@ -2,4 +2,4 @@ CORS_ALLOWED_ORIGINS=https://dev1.aptivaai.com,http://34.16.120.118:3000,http://
|
|||||||
SERVER1_PORT=5000
|
SERVER1_PORT=5000
|
||||||
SERVER2_PORT=5001
|
SERVER2_PORT=5001
|
||||||
SERVER3_PORT=5002
|
SERVER3_PORT=5002
|
||||||
IMG_TAG=202507311843
|
IMG_TAG=202508011118
|
3
Dockerfile.nginx
Normal file
3
Dockerfile.nginx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx:1.25-alpine
|
||||||
|
COPY build/ /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
@ -28,7 +28,7 @@ npm run build
|
|||||||
TAG=$(date -u +%Y%m%d%H%M)
|
TAG=$(date -u +%Y%m%d%H%M)
|
||||||
echo "🔨 Building & pushing containers (tag = ${TAG})"
|
echo "🔨 Building & pushing containers (tag = ${TAG})"
|
||||||
|
|
||||||
for svc in server1 server2 server3; do
|
for svc in server1 server2 server3 nginx; do
|
||||||
docker build -f Dockerfile."$svc" -t "${REG}/${svc}:${TAG}" .
|
docker build -f Dockerfile."$svc" -t "${REG}/${svc}:${TAG}" .
|
||||||
docker push "${REG}/${svc}:${TAG}"
|
docker push "${REG}/${svc}:${TAG}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user