Skip to content

Commit 9f3abc7

Browse files
Fixing workflow.
1 parent 12957f9 commit 9f3abc7

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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()

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
version: '3.8'
2-
31
services:
4-
52
db:
63
image: postgres:13-alpine
74
container_name: codebuilder-db

0 commit comments

Comments
 (0)