Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

permissions:
contents: read
packages: write

jobs:
python-ci:
Expand Down Expand Up @@ -76,28 +75,3 @@ jobs:
build-command: npm run build
artifact-path: dist
upload-artifact: false

docker:
name: Docker build and push
runs-on: ubuntu-latest
needs: [python-ci, backend-integration, frontend]

steps:
- name: Baixar código
uses: actions/checkout@v4

- name: Login no GHCR
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u matheus-tecdev --password-stdin

- name: Build e push backend
run: |
docker build -t ghcr.io/matheus-tecdev/sentinel-backend:1.0.0 ./backend
docker push ghcr.io/matheus-tecdev/sentinel-backend:1.0.0

- name: Build e push frontend
run: |
docker build -t ghcr.io/matheus-tecdev/sentinel-frontend:1.0.0 ./frontend
docker push ghcr.io/matheus-tecdev/sentinel-frontend:1.0.0

- name: Validar docker-compose
run: docker compose config
28 changes: 28 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker Publish

on:
pull_request:
push:
branches:
- main

permissions:
contents: read
packages: write

jobs:
backend:
name: Backend image
uses: Matheus-TecDev/platform-workflows/.github/workflows/docker-publish.yml@729836ae9c9b001051c4f4a46d60ef37f87f5380
with:
context: ./backend
dockerfile: ./backend/Dockerfile
image-name: ghcr.io/matheus-tecdev/sentinel-backend

frontend:
name: Frontend image
uses: Matheus-TecDev/platform-workflows/.github/workflows/docker-publish.yml@729836ae9c9b001051c4f4a46d60ef37f87f5380
with:
context: ./frontend
dockerfile: ./frontend/Dockerfile
image-name: ghcr.io/matheus-tecdev/sentinel-frontend
Loading