test ci/cd titulo v3
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m31s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m31s
This commit is contained in:
@@ -95,17 +95,7 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 6.1. Enviar Relatório ZAP para o Servidor (SCP)
|
- name: 6. Deploy em Produção (SSH)
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: appleboy/scp-action@master
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.SSH_HOST }}
|
|
||||||
username: ${{ secrets.SSH_USER }}
|
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
source: "qatests/report.html"
|
|
||||||
target: "/tmp"
|
|
||||||
|
|
||||||
- name: 6.2. Deploy em Produção (SSH)
|
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
@@ -113,7 +103,6 @@ jobs:
|
|||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script: |
|
script: |
|
||||||
# ADICIONADO: Cancela o deploy imediatamente se algum comando falhar!
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo ">>> 1. A navegar para a pasta do projeto no servidor..."
|
echo ">>> 1. A navegar para a pasta do projeto no servidor..."
|
||||||
@@ -129,10 +118,6 @@ jobs:
|
|||||||
docker rm -f portal-corporativo || true
|
docker rm -f portal-corporativo || true
|
||||||
docker run -d -p 3000:3000 --name portal-corporativo --restart unless-stopped apex-solutions:prod
|
docker run -d -p 3000:3000 --name portal-corporativo --restart unless-stopped apex-solutions:prod
|
||||||
|
|
||||||
echo ">>> 5. A publicar o relatório de segurança transparente..."
|
|
||||||
sleep 5
|
|
||||||
docker cp /tmp/qatests/report.html portal-corporativo:/usr/src/app/frontend/zap-report.html || true
|
|
||||||
|
|
||||||
echo "✅ Deploy concluído com sucesso! A aplicação está no ar."
|
echo "✅ Deploy concluído com sucesso! A aplicação está no ar."
|
||||||
|
|
||||||
- name: 7. Archive ZAP Report
|
- name: 7. Archive ZAP Report
|
||||||
|
|||||||
+1
-1
@@ -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 Busines - Test CI/CD</span>
|
<span class="block text-blue-600">Modern website-secure</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