Files
whatsappNucleo/.gitea/workflows/deploy.yml
josedario87 9c16924c68
All checks were successful
deploy / deploy (push) Successful in 28s
CI: Agregar workflow de deploy y hook de monitoreo de Gitea Actions
2025-12-02 16:33:42 -06:00

32 lines
886 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 }}
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