mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
add deploy.yaml for github
This commit is contained in:
20
,github/workflows/deploy.yaml
Normal file
20
,github/workflows/deploy.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Deploy to Oracle
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy via SSH
|
||||||
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
with:
|
||||||
|
host: 64.110.81.100
|
||||||
|
username: ubuntu
|
||||||
|
key: ${{ secrets.ORACLE_SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
git config --global --add safe.directory /home/ubuntu/apps/linebot_finance
|
||||||
|
cd /home/ubuntu/apps/linebot_finance
|
||||||
|
git pull
|
||||||
|
docker compose up -d
|
||||||
Reference in New Issue
Block a user