diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8cc35fa..3d21f76 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,10 +16,7 @@ jobs: - name: Rebuild and Deploy with Docker Compose run: | - # Use the host's Docker to build the image defined in docker-compose.yml - # The '--no-cache' flag ensures it picks up any changes from your repository - # The 'up -d' command will recreate only the services that have changed - # docker compose build + docker build --target release -t local/gabriel-blog:latest . docker compose up -d # Clean up any old, unused images to save disk space diff --git a/compose.yml b/compose.yml index aa8bbe4..0a86c65 100644 --- a/compose.yml +++ b/compose.yml @@ -1,8 +1,6 @@ services: blog: - build: - context: . - target: release + image: local/gabriel-blog:latest container_name: blog restart: unless-stopped labels: