fix: add database seeding step to Dockerfile for dev and prod environ… #28
This file contains hidden or 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 Backend to DigitalOcean | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: [self-hosted] | |
| steps: | |
| - name: Checkout Code with SSH | |
| uses: actions/checkout@v3 | |
| with: | |
| ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| persist-credentials: false | |
| - name: Deploy to DigitalOcean VPS | |
| run: | | |
| cd /var/www/EventDev-Server | |
| git pull --rebase | |
| cat <<EOF > .env | |
| ${{ secrets.PROD_ENV }} | |
| EOF | |
| make prod-down | |
| make prod-up | |
| - name: Health Check | |
| run: | | |
| cd /var/www/EventDev-Server | |
| sleep 30 | |
| make health-https |