Agora vai: Ativando automação e docker-compose total
This commit is contained in:
parent
8aed0eb5cf
commit
4ec5eaa9b8
|
|
@ -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
|
||||
|
|
@ -52,7 +52,7 @@ services:
|
|||
# EDUMANAGER (PAINEL ADMIN)
|
||||
# ============================
|
||||
edumanager:
|
||||
image: edumanager-app:v2
|
||||
image: ghcr.io/sidney201900/edumanager-pro2026/edumanager:latest
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgres
|
||||
|
|
@ -87,7 +87,7 @@ services:
|
|||
# PORTAL DO ALUNO
|
||||
# ============================
|
||||
portalaluno:
|
||||
image: portalaluno-app:latest
|
||||
image: ghcr.io/sidney201900/edumanager-pro2026/portalaluno:latest
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgres
|
||||
|
|
@ -107,7 +107,7 @@ services:
|
|||
deploy:
|
||||
labels:
|
||||
- "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.tls=true"
|
||||
- "traefik.http.routers.edum-portal.tls.certresolver=letsencrypt"
|
||||
|
|
|
|||
Loading…
Reference in New Issue