Deploy Bot #6
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 Bot | |
on: | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Container | |
run: docker compose up -d --build | |
env: | |
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | |
DB_URI: ${{ secrets.DB_URI }} | |
- name: Display Logs | |
run: python3 -m exendlr psthcbot "Bot prêt !" | |
- name: Cleanup unused images | |
run: docker image prune -f |