mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-05-04 05:29:15 -04:00
ci: sync server via ssh
This commit is contained in:
parent
a2d6832d12
commit
d53438675a
1 changed files with 22 additions and 0 deletions
22
.github/master.yml
vendored
Normal file
22
.github/master.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Sync server via SSH
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# Prevent running this on forks
|
||||||
|
if: github.repository_owner == 'FoxtrotSierra6829'
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- name: executing remote ssh commands using ssh key
|
||||||
|
uses: appleboy/ssh-action@v0.1.6
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
port: ${{ secrets.SSH_PORT }}
|
||||||
|
script: |
|
||||||
|
cd PairDrop
|
||||||
|
git pull
|
||||||
|
sudo docker compose up -d
|
Loading…
Add table
Add a link
Reference in a new issue