feat(application): implement auto-deletion of empty application voice… #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PROD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
environment: Production | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@v1.0.1 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
port: ${{ secrets.SSH_PORT }} | |
username: ${{ secrets.SSH_USERNAME }} | |
password: ${{ secrets.SSH_PASSWORD }} | |
script: | | |
cd ./bot/prod | |
# Pull new changes | |
git pull | |
# Build new Docker Image | |
echo ${{ secrets.SSH_PASSWORD }} | sudo -S docker compose build | |
# Restart Compose Services | |
echo ${{ secrets.SSH_PASSWORD }} | sudo -S docker compose up -d --force-recreate |