refactor: remove unused ESPN API endpoints and clean up schema defini… #153
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: "Docker CI/CD" | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: pluto-betting-bot | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Deploy to VPS | |
uses: appleboy/ssh-action@master | |
with: | |
debug: true | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEYFILE }} | |
passphrase: ${{ secrets.SSH_PASS }} | |
script: | | |
cd apps/Pluto-Betting-Bot | |
git pull origin main | |
# Download the latest Swagger spec | |
curl -o Khronos-Swagger-Spec-v1.json '${{ secrets.SWAGGER_SPEC_URL }}' | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
docker-compose build | |
docker-compose push |