Update deploy.yaml

This commit is contained in:
Shao-Hua Yo
2026-03-15 00:26:24 +08:00
committed by GitHub
parent 8ec961f59b
commit 620f42c116

View File

@@ -1,15 +1,20 @@
name: Oracle-Deploy name: Deploy to Oracle
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
redeploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Deploy - name: Deploy via SSH
run: | uses: appleboy/ssh-action@v1.0.0
git config --global --add safe.directory /home/ubuntu/apps/linebot_finance with:
cd /home/ubuntu/apps/linebot_finance host: 64.110.81.100
git pull username: ubuntu
docker compose up -d 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