feat: Update CSP in nginx config #5
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 SMSWithoutBorders Blog on Server (staging) | |
on: | |
push: | |
branches: | |
- staging | |
jobs: | |
deploy: | |
name: π Execute Deployment Script on Server | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://staging.smswithoutborders.com:18000 | |
steps: | |
- name: π Execute Remote SSH Commands | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
script: | | |
set -e | |
echo "============================" | |
echo "π Updating repository ..." | |
echo "============================" | |
cd major-build/staging-smswithoutborders/blog/ | |
if ! git pull; then | |
echo "β Error updating repository!" | |
exit 1 | |
fi | |
echo "===============================" | |
echo "β Repository update complete" | |
echo "===============================" | |
echo "=========================" | |
echo "π Building project ..." | |
echo "=========================" | |
if ! docker compose --project-name=staging-smswithoutborders --env-file=.env up -d --build; then | |
echo "β Error building project!" | |
exit 1 | |
fi | |
echo "===========================" | |
echo "β Project build complete" | |
echo "===========================" | |