Skip to content

ci: rm env in dockerfile #134

ci: rm env in dockerfile

ci: rm env in dockerfile #134

Workflow file for this run

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