File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,19 @@ jobs:
76
76
echo "Ensuring build runs in default server mode..."
77
77
export NEXT_OUTPUT_MODE='standalone'
78
78
79
- # Step 4: Build the new webapp image.
80
- echo "Building the latest webapp image..."
79
+ # Step 4: Build the new api image.
80
+ echo "Building the latest api image..."
81
81
# Use 'codebuilder' as the stack prefix
82
- docker compose -p codebuilder build webapp
82
+ docker compose -p codebuilder build api
83
83
84
- # Step 5: Forcefully remove the old webapp container to prevent conflicts.
85
- echo "Forcefully removing old webapp container if it exists..."
86
- docker rm -f codebuilder-webapp || true
84
+ # Step 5: Forcefully remove the old api container to prevent conflicts.
85
+ echo "Forcefully removing old api container if it exists..."
86
+ docker rm -f codebuilder-api || true
87
87
88
- # Step 6: Deploy the new webapp container.
89
- echo "Deploying the new webapp container..."
88
+ # Step 6: Deploy the new api container.
89
+ echo "Deploying the new api container..."
90
90
# Use 'codebuilder' as the stack prefix
91
- docker compose -p codebuilder up -d --no-deps webapp
91
+ docker compose -p codebuilder up -d --no-deps api
92
92
93
93
- name : ' 🗑 Prune Old Docker Images'
94
94
if : always()
Original file line number Diff line number Diff line change 1
- version : ' 3.8'
2
-
3
1
services :
4
-
5
2
db :
6
3
image : postgres:13-alpine
7
4
container_name : codebuilder-db
You can’t perform that action at this time.
0 commit comments