feat: update Docker configuration and CI/CD workflows for local image builds
Some checks failed
CI / Backend Tests (pull_request) Failing after 11m8s
CI / Frontend Tests (pull_request) Has been cancelled

This commit is contained in:
2026-03-27 16:01:34 -03:00
parent 06112330b6
commit 3f0bb4be73
5 changed files with 41 additions and 19 deletions

View File

@@ -0,0 +1,25 @@
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