Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3bfccdeca6 | |||
| 007678a44d | |||
| 1c27802143 | |||
| e7629428df | |||
| c78f05a818 | |||
| a74380b072 | |||
| b6691b241b | |||
| 313f93a05d | |||
| 892d17f8dc | |||
| 87a6c63ac8 | |||
| 0a92b7f4a0 | |||
| a1aadf130d | |||
| dd94920955 | |||
| 54a52d9ebe |
@@ -46,6 +46,7 @@ jobs:
|
|||||||
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||||
|
|
||||||
- name: 5. Dynamic Security Scan (OWASP ZAP)
|
- name: 5. Dynamic Security Scan (OWASP ZAP)
|
||||||
|
# REMOVIDO o "if: github.event_name == 'push'". Agora o ZAP corre SEMPRE (nos PRs e nos Merges)!
|
||||||
run: |
|
run: |
|
||||||
echo ">>> 1. Limpeza profunda do ambiente..."
|
echo ">>> 1. Limpeza profunda do ambiente..."
|
||||||
docker rm -f apex-sandbox zap-scanner || true
|
docker rm -f apex-sandbox zap-scanner || true
|
||||||
@@ -95,32 +96,17 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 6. Deploy em Produção (SSH)
|
- name: 6. Production Deployment
|
||||||
|
# MANTIDO: O deploy para a Produção SÓ pode acontecer num push/merge direto para a main!
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
uses: appleboy/ssh-action@master
|
run: |
|
||||||
with:
|
docker rm -f portal-corporativo || true
|
||||||
host: ${{ secrets.SSH_HOST }}
|
docker run -d -p 3000:3000 --name portal-corporativo apex-solutions:latest
|
||||||
username: ${{ secrets.SSH_USER }}
|
sleep 5
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
docker cp qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true
|
||||||
script: |
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo ">>> 1. A navegar para a pasta do projeto no servidor..."
|
|
||||||
cd /storage/docker/website-secure
|
|
||||||
|
|
||||||
echo ">>> 2. A transferir o código aprovado (git pull)..."
|
|
||||||
git pull origin main
|
|
||||||
|
|
||||||
echo ">>> 3. A compilar a imagem Docker de Produção..."
|
|
||||||
docker build -f backend/Dockerfile -t apex-solutions:prod .
|
|
||||||
|
|
||||||
echo ">>> 4. A substituir o contentor em execução..."
|
|
||||||
docker rm -f portal-corporativo || true
|
|
||||||
docker run -d -p 3000:3000 --name portal-corporativo --restart unless-stopped apex-solutions:prod
|
|
||||||
|
|
||||||
echo "✅ Deploy concluído com sucesso! A aplicação está no ar."
|
|
||||||
|
|
||||||
- name: 7. Archive ZAP Report
|
- name: 7. Archive ZAP Report
|
||||||
|
# ALTERADO: Usamos apenas always(). Queremos ver o relatório independentemente de ser PR ou Push.
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Home | Apex Solutions</title>
|
<title>Home | Apex Solutions branch sec</title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<style>
|
<style>
|
||||||
html { scroll-behavior: smooth; } /* Animação suave ao clicar no link de serviços */
|
html { scroll-behavior: smooth; } /* Animação suave ao clicar no link de serviços */
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32">
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32">
|
||||||
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
|
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
|
||||||
<span class="block">Innovative Solutions for</span>
|
<span class="block">Innovative Solutions for</span>
|
||||||
<span class="block text-blue-600">Modern website-secure</span>
|
<span class="block text-blue-600">Modern Businesses</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-6 max-w-2xl text-lg text-gray-500 leading-relaxed">
|
<p class="mt-6 max-w-2xl text-lg text-gray-500 leading-relaxed">
|
||||||
At Apex Solutions, we deliver high-quality business consulting, technology services, and strategic insights. We help organizations across the globe achieve their goals through operational excellence and digital transformation.
|
At Apex Solutions, we deliver high-quality business consulting, technology services, and strategic insights. We help organizations across the globe achieve their goals through operational excellence and digital transformation.
|
||||||
|
|||||||
Reference in New Issue
Block a user