From 4ec5eaa9b80a16ad0d51e0bf2394bd294f31edc8 Mon Sep 17 00:00:00 2001 From: Sidney Date: Sun, 19 Apr 2026 22:58:03 -0300 Subject: [PATCH] =?UTF-8?q?Agora=20vai:=20Ativando=20automa=C3=A7=C3=A3o?= =?UTF-8?q?=20e=20docker-compose=20total?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++++++++++++++++ docker-compose.yml | 6 +++--- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ac88455 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 9003677..6326184 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"