Skip to content

Commit

Permalink
Check PBX_HOSTNAME var
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 14, 2023
1 parent 3cee884 commit e1dde28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ jobs:

- name: Sleeping for 10 seconds
run: sleep 10


- name: Add PBX_HOSTNAME to Environment if var is set
if: ${{ vars.PBX_HOSTNAME }}
run: echo "PBX_HOSTNAME=${{ vars.PBX_HOSTNAME }}" >> $GITHUB_ENV

- name: Deploy Stack
run: |
# deploy stacks to Frankfurt to validate everything (just to keep us-east-1 and us-west-2 cleaner)
# Also you are limited to 3 Voice Connectors per region
cdk deploy -c accountId=${AWS_ACCOUNT_ID} -c stackName=${{ vars.STACK_NAME }} -c regionEast=${{ vars.REGION }} --require-approval=never --ci=true east
env:
# Set this to bogus IP (cannot be private IP) just so VoiceConnector Origination settings are deployed to validate that works
PBX_HOSTNAME: ${{ vars.PBX_HOSTNAME }}

0 comments on commit e1dde28

Please sign in to comment.