Skip to content

Commit

Permalink
Adding VTM App deployment GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
hamiltonrossbjss committed Dec 5, 2023
1 parent 4360bf8 commit 1d8f2c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import json

branch = os.getenv('BRANCH', '')
environment = os.getenv('ENVIRONMENT', '')
action = os.getenv('ACTION', '')
key = os.getenv('ACTIONS_KEY', '')

data = json.dumps({
"event_type": action,
"client_payload": {
"branch": branch
"environment" : environment
},
})
print(data)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
env:
ACTION: "tf-apply"
BRANCH: ${{ inputs.branch }}
ENVIRONMENT: ${{ inputs.environment }}
ACTIONS_KEY: ${{ env.GITHUB_CVS_OPS_TOKEN }}
run: python .github/scripts/dispatcher.py

Expand Down

0 comments on commit 1d8f2c6

Please sign in to comment.