diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ac6b30f..c46df91 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,15 +1,20 @@ -name: Oracle-Deploy +name: Deploy to Oracle on: push: branches: - main jobs: - redeploy: + deploy: runs-on: ubuntu-latest steps: - - name: Deploy - run: | - git config --global --add safe.directory /home/ubuntu/apps/linebot_finance - cd /home/ubuntu/apps/linebot_finance - git pull - docker compose up -d \ No newline at end of file + - 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