Deploy pastebin
16. tammikuuta 2022
| 153 näyttökertaa
name: Deploy to server
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: 22
script: |
cd /root/PowerPaste
git pull
docker-compose up -d --build