-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-and-push-all.sh
More file actions
executable file
Β·49 lines (39 loc) Β· 1.58 KB
/
Copy pathbuild-and-push-all.sh
File metadata and controls
executable file
Β·49 lines (39 loc) Β· 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Build and push all Docker images for team-deployaas
# Registry: ghcr.io/aet-devops25/team-deployaas/
# Uses --no-cache to ensure fresh builds with latest changes
set -e
REGISTRY="ghcr.io/aet-devops25/team-deployaas"
echo "π Building and pushing all Docker images to $REGISTRY (no cache for fresh builds)"
# Build frontend/client
echo "ποΈ Building frontend client..."
cd frontend/client-vue
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t $REGISTRY/client:latest . --push
cd ../..
# Build auth-service
echo "ποΈ Building auth-service..."
cd auth-service
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t $REGISTRY/auth-service:latest . --push
cd ..
# Build quiz-service
echo "ποΈ Building quiz-service..."
cd quiz-service
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t $REGISTRY/quiz-service:latest . --push
cd ..
# Build flashcard-service
echo "ποΈ Building flashcard-service..."
cd flashcard-service
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t $REGISTRY/flashcard-service:latest . --push
cd ..
# Build genai-service
echo "ποΈ Building genai-service..."
cd genai-service
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t $REGISTRY/genai-service:latest . --push
cd ..
echo "β
All Docker images built and pushed successfully!"
echo "π Images built:"
echo " - $REGISTRY/client:latest"
echo " - $REGISTRY/auth-service:latest"
echo " - $REGISTRY/quiz-service:latest"
echo " - $REGISTRY/flashcard-service:latest"
echo " - $REGISTRY/genai-service:latest"