Deploy to self-hosted #3
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 self-hosted | |
on: | |
workflow_run: | |
workflows: [ "Python application CI" ] | |
branches: [ "main" ] | |
types: | |
- completed | |
env: | |
MONGO_URI: ${{ secrets.MONGO_URI }} | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker-compose | |
run: docker compose up -d --build | |
- name: Clear Docker Cache | |
run: docker system prune -af |