Skip to content

Commit

Permalink
I just want it to work
Browse files Browse the repository at this point in the history
  • Loading branch information
RJMurg authored Mar 29, 2024
1 parent 73a6d15 commit 06dfc3a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/deploy-to-vps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
EXPOSED_PORT: ${{ secrets.EXPOSED_PORT }}
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.HOST }} << 'EOF'
cd /src/Website
# Pull the latest changes
git pull origin master
# Add the .env
echo "EXPOSED_PORT=${EXPOSED_PORT}" > .env
# Use Docker Compose to rebuild and restart the container with the new image
docker compose up -d --build
cd /src/Website
touch .env
chmod 644 .env
echo "EXPOSED_PORT=\${EXPOSED_PORT}" > .env
git reset --hard HEAD
git pull origin master
docker-compose up -d --build
EOF

0 comments on commit 06dfc3a

Please sign in to comment.