Files
whatsappNucleo/.gitea/workflows/deploy.yml
josedario87 22d7cdc523
All checks were successful
deploy / deploy (push) Successful in 17s
Fix: Agregar PostgreSQL con nombre único para evitar conflictos
2025-12-02 16:41:47 -06:00

33 lines
944 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: deploy
on:
push:
branches: [ main, master ]
jobs:
#───────────────── deploy (unified) ─────────────────
deploy:
runs-on: docker
env:
APP_NAME: ${{ vars.APP_NAME }}
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
EVOLUTION_API_KEY: ${{ secrets.EVOLUTION_API_KEY }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Info about environment
run: |
echo " Deploying ${{ vars.APP_NAME }}"
echo " Domain: ${{ vars.APP_DOMAIN }}"
echo " Network: principal"
- name: Pull fresh images used in compose
run: docker compose pull
- name: Clean up stack
run: docker compose --project-name $APP_NAME down
- name: Update stack
run: docker compose --project-name $APP_NAME up -d --remove-orphans --wait