Skip to content

db_pass_setting

db_pass_setting #3

Workflow file for this run

name: Deploy to Droplet
on:
push:
branches:
- main # Or your deployment branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Deploy to Droplet
env:
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.HOST }} << 'EOF'
cd /home/my-app/fiit-mtaa-2024-server/
git pull
docker compose down
docker compose up --build -d
EOF