fix: pipeline added pre-build image
This commit is contained in:
parent
6cec08dbc4
commit
5b44f6a4c1
2
.github/workflows/deploy-ec2.yml
vendored
2
.github/workflows/deploy-ec2.yml
vendored
@ -123,7 +123,7 @@ jobs:
|
||||
|
||||
# Rolling update with docker compose (app + Postgres)
|
||||
echo "=== ROLLING UPDATE (docker compose up -d) ==="
|
||||
if ! docker compose -f docker-compose.yml --env-file .env up -d --remove-orphans; then
|
||||
if ! docker compose -f docker-compose.yml --env-file .env up -d --no-build --remove-orphans; then
|
||||
echo "ERROR: Deployment failed"
|
||||
docker compose -f docker-compose.yml down || true
|
||||
exit 1
|
||||
|
||||
@ -20,6 +20,8 @@ services:
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
# Use pre-built image on deploy (EC2 loads tar only; no Dockerfile on server). Local: docker compose up --build
|
||||
image: ${IMAGE_NAME:-junohub-app}:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
Loading…
Reference in New Issue
Block a user