Agora vai: Ativando automação e docker-compose total

This commit is contained in:
Sidney 2026-04-19 22:58:03 -03:00
parent 8aed0eb5cf
commit 4ec5eaa9b8
2 changed files with 40 additions and 3 deletions

37
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Build and Deploy
on:
push:
branches: [ main ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Manager
uses: docker/build-push-action@v5
with:
context: ./manager
push: true
tags: ghcr.io/${{ github.repository }}/edumanager:latest
- name: Build and push Portal
uses: docker/build-push-action@v5
with:
context: ./portal
push: true
tags: ghcr.io/${{ github.repository }}/portalaluno:latest

View File

@ -52,7 +52,7 @@ services:
# EDUMANAGER (PAINEL ADMIN) # EDUMANAGER (PAINEL ADMIN)
# ============================ # ============================
edumanager: edumanager:
image: edumanager-app:v2 image: ghcr.io/sidney201900/edumanager-pro2026/edumanager:latest
restart: always restart: always
depends_on: depends_on:
- postgres - postgres
@ -87,7 +87,7 @@ services:
# PORTAL DO ALUNO # PORTAL DO ALUNO
# ============================ # ============================
portalaluno: portalaluno:
image: portalaluno-app:latest image: ghcr.io/sidney201900/edumanager-pro2026/portalaluno:latest
restart: always restart: always
depends_on: depends_on:
- postgres - postgres
@ -107,7 +107,7 @@ services:
deploy: deploy:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.edum-portal.rule=Host(`portal.microtecinformaticacurso.com.br`)" - "traefik.http.routers.edum-portal.rule=Host(`aluno.microtecinformaticacurso.com.br`)"
- "traefik.http.routers.edum-portal.entrypoints=websecure" - "traefik.http.routers.edum-portal.entrypoints=websecure"
- "traefik.http.routers.edum-portal.tls=true" - "traefik.http.routers.edum-portal.tls=true"
- "traefik.http.routers.edum-portal.tls.certresolver=letsencrypt" - "traefik.http.routers.edum-portal.tls.certresolver=letsencrypt"