Files
blog/.gitea/workflows/deploy.yml
Gabriel Kaszewski 07760363e1
Some checks failed
Build and Deploy Blog / build-and-deploy-local (push) Failing after 3s
Fix Docker command syntax in deployment workflow
2025-09-03 23:32:01 +02:00

26 lines
716 B
YAML

name: Build and Deploy Blog
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy-local:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- 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 --no-cache
docker compose up -d
# Clean up any old, unused images to save disk space
docker image prune -f