Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator authored Nov 30, 2024
1 parent e6f1e71 commit 0ef8668
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: self-hosted
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
port: ${{ secrets.REMOTE_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/pychan/PyChan-Bot
git checkout master
git pull
docker build -t pychan .
cd ../
docker compose up -d
echo "$(date): actions build success" >> actions-logs.txt

0 comments on commit 0ef8668

Please sign in to comment.