Skip to content

pending-emails-sender #4

pending-emails-sender

pending-emails-sender #4

name: pending-emails-sender
on:
workflow_dispatch:
jobs:
send-emails:
runs-on: ubuntu-latest
environment: production
steps:
- name: Send emails
uses: appleboy/[email protected]
env:
DOCKER_REGISTRY_TOKEN: ${{ secrets.DOCKER_REGISTRY_TOKEN_DM }}
with:
host: ${{ secrets.PRODUCTION_SSH_HOST }}
username: ${{ secrets.PRODUCTION_SSH_USER }}
key: ${{ secrets.PRODUCTION_SSH_KEY }}
command_timeout: 2m
envs: DOCKER_REGISTRY_TOKEN_DM
script: |
cd workspace/DucksManager2
docker compose exec -w /app/packages api node ./api/scripts/send-pending-emails.js