From b6e0836430c1c1dc6903ee4e01f262fa993f8f28 Mon Sep 17 00:00:00 2001 From: lucas3900 <66710631+lucas3900@users.noreply.github.com> Date: Fri, 28 Jun 2024 09:48:54 -0400 Subject: [PATCH] standardize IR-Engine Deploy across dev,int,stg; IR-2698 (#10474) * standardize IR-Engine Deploy across dev,int,stg; IR-2698 * file rename, and remove PR used for testing --- .github/workflows/ir-engine-deploy.yml | 32 ++++++++++++++++++++++ .github/workflows/ir-engine-dev-deploy.yml | 17 ------------ 2 files changed, 32 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ir-engine-deploy.yml delete mode 100644 .github/workflows/ir-engine-dev-deploy.yml diff --git a/.github/workflows/ir-engine-deploy.yml b/.github/workflows/ir-engine-deploy.yml new file mode 100644 index 0000000000..afbd550e0d --- /dev/null +++ b/.github/workflows/ir-engine-deploy.yml @@ -0,0 +1,32 @@ +name: Deploy IR Engine + +on: + push: + branches: [dev, int, stg] + paths-ignore: + - '**/*.md' + - '.*ignore' + workflow_dispatch: + inputs: + environment: + description: Evironment to Deploy + required: true + type: choice + options: + - dev + - int + - stg + +env: + TARGET_BRANCH_NAME: ${{ github.base_ref || github.ref_name }} + +jobs: + remote-dispatch-deploy: + runs-on: ubuntu-latest + steps: + - name: Send Remote Dispatch to Deploy IR-Engine + run: | + curl -H "Authorization: token ${{ secrets.IR_ORG_ACCESS_TOKEN }}" \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + ${{ secrets.IR_ENGINE_OPS_API_URL }} \ + -d '{"event_type": "deploy-ir-engine", "client_payload": {"environment": "${{ env.TARGET_BRANCH_NAME }}"}}' diff --git a/.github/workflows/ir-engine-dev-deploy.yml b/.github/workflows/ir-engine-dev-deploy.yml deleted file mode 100644 index 2b876c5ec4..0000000000 --- a/.github/workflows/ir-engine-dev-deploy.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: IR Engine Dev Deployment - -on: - push: - branches: [dev] - -jobs: - remote-dispatch-dev-deploy: - runs-on: ubuntu-latest - steps: - - name: Send Remote Dispatch to Deploy Dev - id: check-secrets-webhook - run: | - curl -H "Authorization: token ${{ secrets.IR_ORG_ACCESS_TOKEN }}" \ - -H 'Accept: application/vnd.github.everest-preview+json' \ - ${{ secrets.IR_ENGINE_OPS_API_URL }} \ - -d '{"event_type": "deploy-dev"}'