Browse Source

use review env for review apps

pull/1578/head
Phil Lee 3 years ago
parent
commit
dec17a85d1
  1. 8
      .github/workflows/review_pipeline.yml
  2. 6
      .github/workflows/review_teardown_pipeline.yml

8
.github/workflows/review_pipeline.yml

@ -18,7 +18,7 @@ jobs:
postgres:
name: Provision postgres
runs-on: ubuntu-latest
environment: staging
environment: review
steps:
- name: Install Cloud Foundry CLI
@ -44,7 +44,7 @@ jobs:
redis:
name: Provision redis
runs-on: ubuntu-latest
environment: staging
environment: review
steps:
- name: Install Cloud Foundry CLI
@ -70,7 +70,7 @@ jobs:
deploy:
name: Deploy review app
runs-on: ubuntu-latest
environment: staging
environment: review
needs: [postgres, redis]
permissions:
issues: write
@ -125,7 +125,7 @@ jobs:
cf set-env $APP_NAME IMPORT_PAAS_INSTANCE $IMPORT_PAAS_INSTANCE
cf set-env $APP_NAME EXPORT_PAAS_INSTANCE "dluhc-core-review-export-bucket"
cf set-env $APP_NAME S3_CONFIG $S3_CONFIG
cf set-env $APP_NAME CSV_DOWNLOAD_PAAS_INSTANCE "dluhc-core-staging-csv-bucket"
cf set-env $APP_NAME CSV_DOWNLOAD_PAAS_INSTANCE "dluhc-core-review-csv-bucket"
cf set-env $APP_NAME SENTRY_DSN $SENTRY_DSN
cf set-env $APP_NAME APP_HOST "https://dluhc-core-review-${{ github.event.pull_request.number }}.london.cloudapps.digital"

6
.github/workflows/review_teardown_pipeline.yml

@ -14,7 +14,7 @@ jobs:
app:
name: Teardown app
runs-on: ubuntu-latest
environment: staging
environment: review
steps:
- name: Install Cloud Foundry CLI
@ -40,7 +40,7 @@ jobs:
postgres:
name: Teardown postgres
runs-on: ubuntu-latest
environment: staging
environment: review
needs: [app]
steps:
@ -67,7 +67,7 @@ jobs:
redis:
name: Teardown redis
runs-on: ubuntu-latest
environment: staging
environment: review
needs: [app]
steps:

Loading…
Cancel
Save