CI/CD: Refatorado passos de preparação e validação no deploy
Some checks failed
Deploy WiFi-ETL Prod / deploy (push) Has been cancelled
Some checks failed
Deploy WiFi-ETL Prod / deploy (push) Has been cancelled
This commit is contained in:
parent
38fdca14ca
commit
6a36a1ecef
@ -10,6 +10,13 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Preparar ambiente
|
||||||
|
run: |
|
||||||
|
sudo mkdir -p /opt/wifi-etl
|
||||||
|
sudo chown $(whoami):$(whoami) /opt/wifi-etl
|
||||||
|
|
||||||
|
|
||||||
- name: Garantindo safe directory
|
- name: Garantindo safe directory
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory /opt/wifi-etl
|
git config --global --add safe.directory /opt/wifi-etl
|
||||||
@ -51,7 +58,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Validar saúde - Database
|
- name: Validar saúde - Database
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
docker exec wifi_etl_worker python3 << 'PYEOF'
|
docker exec wifi_etl_worker python3 << 'PYEOF'
|
||||||
import psycopg2, os, sys
|
import psycopg2, os, sys
|
||||||
try:
|
try:
|
||||||
@ -72,5 +78,4 @@ jobs:
|
|||||||
- name: Verificar logs iniciais
|
- name: Verificar logs iniciais
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
docker logs --tail 20 wifi_etl_worker || true
|
docker logs --tail 20 wifi_etl_worker || true
|
||||||
Loading…
Reference in New Issue
Block a user