Skip to content

chore: Update Dockerfile to build a smaller final image with Alpine L… #32

chore: Update Dockerfile to build a smaller final image with Alpine L…

chore: Update Dockerfile to build a smaller final image with Alpine L… #32

Workflow file for this run

name: Build Backend
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Upload and run Backend
run: |
sshpass -p $PASSWORD ssh -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP "sudo rm -rf /home/pop-pc/*"
sshpass -p $PASSWORD sftp -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP <<EOF
put -r ./backend
bye
EOF
sshpass -p $PASSWORD ssh -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP "bash ~/backend/get_repos.sh"
sshpass -p $PASSWORD ssh -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP "cd ~/backend && bash run_backend.sh"
env:
SERVER_IP: ${{ secrets.SERVER_IP }}
# pop-pc
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}