Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
standardize IR-Engine Deploy across dev,int,stg; IR-2698 (#10474)
Browse files Browse the repository at this point in the history
* standardize IR-Engine Deploy across dev,int,stg; IR-2698

* file rename, and remove PR used for testing
  • Loading branch information
lucas3900 authored Jun 28, 2024
1 parent a1ff227 commit b6e0836
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ir-engine-deploy.yml
Original file line number Diff line number Diff line change
@@ -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 }}"}}'
17 changes: 0 additions & 17 deletions .github/workflows/ir-engine-dev-deploy.yml

This file was deleted.

0 comments on commit b6e0836

Please sign in to comment.