เพิ่ม git workflow

This commit is contained in:
Kittapath 2023-03-29 20:44:39 +07:00
parent a93dcbbd20
commit 2328f19be4
21 changed files with 408 additions and 21 deletions

23
.github/workflows/deploy.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
name: deploy-docker
run-name: deploy-docker ${{ github.actor }}
on:
workflow_dispatch:
jobs:
# https://github.com/appleboy/ssh-action
# act -W .github/workflows/deploy.yaml -j remote-deploy -s SSH_PASSWORD
remote-deploy:
runs-on: ubuntu-latest
steps:
- name: Remote Deployment
uses: appleboy/ssh-action@v0.1.8
with:
host: frappet.com
username: frappet
password: ${{ secrets.SSH_PASSWORD }}
port: 22
script: |
cd /home/frappet/docker/bma-ehr-recruit-qualifying-exam
docker-compose pull
docker-compose up -d
touch success