Skip to content

Commit

Permalink
Merge pull request #54 from DataBiosphere/feat/workflow-update
Browse files Browse the repository at this point in the history
fix: updating env on scripts
  • Loading branch information
luan-dev authored Mar 18, 2021
2 parents 66351ac + f77e344 commit 73fe39a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-gke.anvil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ jobs:
- name: Install Node Modules
run: npm install

- name: Generate .env
run: node ../scripts/create-env-file.js TCGA_URL=${{ secrets.TCGA_URL }} ANVIL_URL=${{ secrets.ANVIL_URL }} URL=${{ secrets.URL }}
- name: Generate env
run: node ../scripts/create-env-file.js PORT=3002 MONGO_CONNECTION_STRING=${{ secrets.MONGO_READ_CONNECTION_STRING }} PROJECT_ID=${{ secrets.PROJECT_ID }}

- name: Build
run: |
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/publish-to-gke.tcga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ env:
REGISTRY_HOSTNAME: gcr.io
GKE_CLUSTER: broad-fhir-cluster
GKE_ZONE: us-east1-b
URL: ${{ secrets.URL }}
TCGA_URL: ${{ secrets.TCGA_URL }}
ANVIL_URL: ${{ secrets.ANVIL_URL }}
TYPE: ${{ secrets.TYPE }}
PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
AUTH_URI: ${{ secrets.AUTH_URI }}
TOKEN_URI: ${{ secrets.TOKEN_URI }}
AUTH_PROVIDER_X509_CERT_URL: ${{ secrets.AUTH_PROVIDER_X509_CERT_URL }}
CLIENT_X509_CERT_URL: ${{ secrets.CLIENT_X509_CERT_URL }}

jobs:
run-tests:
Expand Down Expand Up @@ -80,8 +86,11 @@ jobs:
- name: Install Node Modules
run: npm install

- name: Generate .env
run: node ../scripts/create-env-file.js TCGA_URL=${{ secrets.TCGA_URL }} ANVIL_URL=${{ secrets.ANVIL_URL }} URL=${{ secrets.URL }}
- name: Generate GCP Credentials
run: node ../scripts/create-gcp-cred-file.js

- name: Generate env
run: node ../scripts/create-env-file.js PORT=3001 GOOGLE_APPLICATION_CREDENTIALS=./creds.json PROJECT_ID=${{ secrets.PROJECT_ID }}

- name: Build
run: |
Expand Down

0 comments on commit 73fe39a

Please sign in to comment.