From 1d8f2c69de1641c174aa34fd6a180235ed98919f Mon Sep 17 00:00:00 2001 From: Ross Hamilton Date: Tue, 5 Dec 2023 14:38:03 +0000 Subject: [PATCH] Adding VTM App deployment GHA --- .github/scripts/dispatcher.py | 2 ++ .github/workflows/deploy.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/scripts/dispatcher.py b/.github/scripts/dispatcher.py index 9889523d62..fb159b85c8 100644 --- a/.github/scripts/dispatcher.py +++ b/.github/scripts/dispatcher.py @@ -3,6 +3,7 @@ import json branch = os.getenv('BRANCH', '') +environment = os.getenv('ENVIRONMENT', '') action = os.getenv('ACTION', '') key = os.getenv('ACTIONS_KEY', '') @@ -10,6 +11,7 @@ "event_type": action, "client_payload": { "branch": branch + "environment" : environment }, }) print(data) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 626c18048f..b27a1ebaae 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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