Skip to content

Commit

Permalink
Move proxy env vars to file
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 9, 2024
1 parent 342494e commit 8dd6e3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ inputs:
default: latest
env:
required: false
envFile:
required: false
outputs:
url:
value: ${{ steps.deploy.outputs.url }}
Expand Down Expand Up @@ -49,6 +51,7 @@ runs:
flags: |
--allow-unauthenticated
--set-env-vars="${{ inputs.env }}"
--env-vars-file="${{ inputs.envFile }}"
--service-account=github-deploy@${{ inputs.projectId }}.iam.gserviceaccount.com
- name: Move traffic to new revision
if: ${{ inputs.tag == 'latest' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ jobs:
folder: ./proxy/
registry: staging/proxy
service: staging-proxy
env: STAGING=1,PROXY_ORIGIN=^https:\/\/dev\.slowreader\.app\/
envFile: ./proxy/staging.yml
2 changes: 2 additions & 0 deletions proxy/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STAGING: 1
PROXY_ORIGIN: "^https:\\/\\/dev\.slowreader\\.app\\/"

0 comments on commit 8dd6e3a

Please sign in to comment.