fix unauthenticated user to add to cart #23
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: Deploy Project | |
on: | |
push: | |
branches: | |
- main # Trigger the workflow on push to main branch | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
# ssh into the server | |
- name: SSH into server | |
run: | | |
ssh -o StrictHostKeyChecking=no root@192.168.100.4 << 'EOF' | |
cd /root/apps/tokopakedi | |
git restore . | |
git pull origin main | |
docker compose down | |
docker compose up -d --build | |
EOF |