Skip to content

Server Build & Push #58

Server Build & Push

Server Build & Push #58

Workflow file for this run

name: Server Build & Push
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: eviltelegrambot
SENTRY_PROJECT: eviltelegrambot
with:
environment: production
- name: Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
cd ${{ secrets.SSH_PATH }}
git fetch --all
git reset --hard origin/master
echo "${{ secrets.BOT_ENV }}" > bot.env
echo "${{ secrets.DB_ENV }}" > db.env
docker compose up --build -d