Auto deploy Test AND Beta automatically on merge
Now both instances will be deployed automatically, while still allowing us to deploy a single one with a specific branch via UI (from the private `devops` repo).
This commit is contained in:
parent
f2a7902b9c
commit
ff0f61d57f
|
@ -2,15 +2,6 @@ name: Update Deployments
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
instance:
|
||||
type: choice
|
||||
description: "Instance name"
|
||||
default: "test"
|
||||
options:
|
||||
- test
|
||||
- beta
|
||||
required: true
|
||||
|
||||
push:
|
||||
branches:
|
||||
|
@ -25,8 +16,11 @@ on:
|
|||
jobs:
|
||||
trigger-gh-action:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
instance: ["test", "beta"]
|
||||
env:
|
||||
DEPLOY_BRANCH: ${{ github.event.inputs.instance || 'test' }}
|
||||
DEPLOY_INSTANCE: ${{ matrix.instance }}
|
||||
steps:
|
||||
- name: Trigger GH Action
|
||||
run: |
|
||||
|
@ -37,7 +31,7 @@ jobs:
|
|||
--data '{
|
||||
"ref": "main",
|
||||
"inputs": {
|
||||
"instance": "${{ env.DEPLOY_BRANCH }}",
|
||||
"instance": "${{ env.DEPLOY_INSTANCE }}",
|
||||
"branch": "${{ github.sha }}"
|
||||
}
|
||||
}'
|
||||
|
|
Loading…
Reference in New Issue