Skip to content

Commit

Permalink
Change workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivixer committed Apr 21, 2024
1 parent 1a420fa commit 8a21665
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@ jobs:

steps:
- name: Connect to Raspberry Pi and restart the backend
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.RASPBERRY_PI_HOST }}
username: ${{ secrets.RASPBERRY_PI_USERNAME }}
password: ${{ secrets.RASPBERRY_PI_PASSWORD }}
port: ${{ secrets.RASPBERRY_PI_PORT }}
script: |
cd backend
git fetch
git pull
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
docker build -t backend .
docker run -d -p 8082:8080 backend
script: whoami


0 comments on commit 8a21665

Please sign in to comment.