1234567891011121314151617181920212223242526272829 |
- name: Deploy to Production
- on:
- release:
- types:
- - published
- jobs:
- deploy:
- runs-on:
- - self-hosted
- - production
- env:
- ENVIRONMENT: production
- DOMAIN: ${{ secrets.DOMAIN_PRODUCTION }}
- SECRET_KEY: ${{ secrets.SECRET_KEY }}
- FIRST_SUPERUSER: ${{ secrets.FIRST_SUPERUSER }}
- FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
- SMTP_HOST: ${{ secrets.SMTP_HOST }}
- SMTP_USER: ${{ secrets.SMTP_USER }}
- SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
- EMAILS_FROM_EMAIL: ${{ secrets.EMAILS_FROM_EMAIL }}
- POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
- SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - run: docker compose -f docker-compose.yml build
- - run: docker compose -f docker-compose.yml up -d
|