Files
blog/.gitea/workflows/deploy.yml
Gabriel Kaszewski 5c12412acb
Some checks failed
Build and Deploy Blog / build-and-deploy-local (push) Failing after 8s
Update deployment branch from master to main
2025-09-03 23:28:07 +02:00

25 lines
703 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 up -d --build --no-cache
# Clean up any old, unused images to save disk space
docker image prune -f