Merge pull request #75 from fiit-tp7-2023/design-proposal #10
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
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH into the server, Github pull and update Docker setup | |
uses: appleboy/ssh-action@v1.0.0 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
script_stop: true | |
script: | | |
cd /usr/local/team07/presentation-web/frontend | |
git checkout main | |
git pull | |
docker compose down --rmi all | |
docker system prune -a -f | |
docker compose build --no-cache | |
docker compose up -d |