Add automated test-environment deploy via SCP with nginx reverse proxy, domain names and SSL (certbot) setup
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -4,7 +4,7 @@ on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -103,10 +103,12 @@ jobs:
|
||||
- name: Unit tests
|
||||
run: pnpm run test
|
||||
|
||||
deploy:
|
||||
deploy-test:
|
||||
needs: [build, test]
|
||||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
|
||||
uses: ./.gitea/workflows/deploy.yaml
|
||||
secrets: inherit
|
||||
with:
|
||||
artifact_name: dist
|
||||
environment: production
|
||||
environment: test
|
||||
deploy_path: /html/test/slpsoftware
|
||||
|
||||
Reference in New Issue
Block a user