Skip to content

Commit

Permalink
ci: воркфлоу для деплоя
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler committed Nov 27, 2022
1 parent d8515bd commit c99cace
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Server Build & Push

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3

- 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 -d

0 comments on commit c99cace

Please sign in to comment.