38 lines
884 B
YAML
38 lines
884 B
YAML
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
|