Refactor Docker configuration in deployment workflow and compose file
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 41s

This commit is contained in:
2025-09-03 23:42:57 +02:00
parent 4d21dd2ab1
commit a475d8a5fb
2 changed files with 2 additions and 7 deletions

View File

@@ -16,10 +16,7 @@ jobs:
- name: Rebuild and Deploy with Docker Compose - name: Rebuild and Deploy with Docker Compose
run: | run: |
# Use the host's Docker to build the image defined in docker-compose.yml docker build --target release -t local/gabriel-blog:latest .
# 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 compose up -d docker compose up -d
# Clean up any old, unused images to save disk space # Clean up any old, unused images to save disk space

View File

@@ -1,8 +1,6 @@
services: services:
blog: blog:
build: image: local/gabriel-blog:latest
context: .
target: release
container_name: blog container_name: blog
restart: unless-stopped restart: unless-stopped
labels: labels: