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:
7676 echo "Ensuring build runs in default server mode..."
7777 export NEXT_OUTPUT_MODE='standalone'
7878
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..."
8181 # Use 'codebuilder' as the stack prefix
82- docker compose -p codebuilder build webapp
82+ docker compose -p codebuilder build api
8383
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
8787
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..."
9090 # 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
9292
9393 - name : ' 🗑 Prune Old Docker Images'
9494 if : always()
Original file line number Diff line number Diff line change 1- version : ' 3.8'
2-
31services :
4-
52 db :
63 image : postgres:13-alpine
74 container_name : codebuilder-db
You can’t perform that action at this time.
0 commit comments