refactor: Update Dockerfile to use yarn cache for faster installation #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: React build apple | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
React-Build-ssh-action: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: SSH Remote Commands | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
timeout: 30s | |
script: | | |
cd /root/adego-api | |
git pull | |
docker compose up -d --build |