deploy-staging.yml 856 B

1234567891011121314151617181920212223242526272829
  1. name: Deploy to Staging
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. deploy:
  8. runs-on:
  9. - self-hosted
  10. - staging
  11. env:
  12. ENVIRONMENT: staging
  13. DOMAIN: ${{ secrets.DOMAIN_STAGING }}
  14. SECRET_KEY: ${{ secrets.SECRET_KEY }}
  15. FIRST_SUPERUSER: ${{ secrets.FIRST_SUPERUSER }}
  16. FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
  17. SMTP_HOST: ${{ secrets.SMTP_HOST }}
  18. SMTP_USER: ${{ secrets.SMTP_USER }}
  19. SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
  20. EMAILS_FROM_EMAIL: ${{ secrets.EMAILS_FROM_EMAIL }}
  21. POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
  22. SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
  23. steps:
  24. - name: Checkout
  25. uses: actions/checkout@v4
  26. - run: docker compose -f docker-compose.yml build
  27. - run: docker compose -f docker-compose.yml up -d