Files
condado-newsletter/.gitea/workflows/build.yml
Gabriel Sancho 3f0bb4be73
Some checks failed
CI / Backend Tests (pull_request) Failing after 11m8s
CI / Frontend Tests (pull_request) Has been cancelled
feat: update Docker configuration and CI/CD workflows for local image builds
2026-03-27 16:01:34 -03:00

25 lines
740 B
YAML

name: Build Production Images
on:
pull_request_review:
types: [submitted]
jobs:
build:
name: Build Production Images
if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
github-server-url: http://gitea.lab
ref: ${{ github.event.pull_request.head.sha }}
- name: Verify Docker CLI
run: docker version
- name: Build backend image
run: docker build -t condado-newsletter-backend:latest -f backend/Dockerfile ./backend
- name: Build frontend image
run: docker build -t condado-newsletter-frontend:latest -f frontend/Dockerfile ./frontend