All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 41s
23 lines
493 B
YAML
23 lines
493 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: |
|
|
docker build --target release -t local/gabriel-blog:latest .
|
|
docker compose up -d
|
|
|
|
# Clean up any old, unused images to save disk space
|
|
docker image prune -f |