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:
Bruno Bernardino 2022-06-01 13:00:50 +01:00
parent f2a7902b9c
commit ff0f61d57f
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
1 changed files with 5 additions and 11 deletions

View File

@ -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 }}"
}
}'