Skip to content

Commit 46c3345

Browse files
Fixed container name.
1 parent c2707ed commit 46c3345

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ jobs:
7979
echo "Ensuring build runs in default server mode..."
8080
export NEXT_OUTPUT_MODE='standalone'
8181
82-
# Step 4: Build the new webapp image.
83-
echo "Building the latest webapp image..."
82+
# Step 4: Build the latest api image.
83+
echo "Building the latest api image..."
8484
# Use 'codebuilder' as the stack prefix
85-
docker compose -p codebuilder build webapp
85+
docker compose -p codebuilder build api
8686
87-
# Step 5: Forcefully remove the old webapp container to prevent conflicts.
88-
echo "Forcefully removing old webapp container if it exists..."
89-
docker rm -f codebuilder-webapp || true
87+
# Step 5: Forcefully remove the old api container to prevent conflicts.
88+
echo "Forcefully removing old api container if it exists..."
89+
docker rm -f codebuilder-api || true
9090
91-
# Step 6: Deploy the new webapp container.
92-
echo "Deploying the new webapp container..."
91+
# Step 6: Deploy the new api container.
92+
echo "Deploying the new api container..."
9393
# Use 'codebuilder' as the stack prefix
94-
docker compose -p codebuilder up -d --no-deps webapp
94+
docker compose -p codebuilder up -d --no-deps api
9595
9696
- name: '🗑 Prune Old Docker Images'
9797
if: always()

0 commit comments

Comments
 (0)