mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
change deploy.yaml ver 7.
This commit is contained in:
@@ -7,14 +7,8 @@ jobs:
|
|||||||
redeploy:
|
redeploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Deploy
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Deploy via SSH
|
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ORACLE_SSH_KEY }}" > /tmp/deploy_key
|
cd /home/ubuntu/apps/linebot_finance
|
||||||
chmod 600 /tmp/deploy_key
|
git pull
|
||||||
ssh -i /tmp/deploy_key -o StrictHostKeyChecking=no ubuntu@64.110.81.100 "
|
|
||||||
cd /home/ubuntu/apps/linebot_finance &&
|
|
||||||
git pull &&
|
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
"
|
|
||||||
Reference in New Issue
Block a user