Merge pull request #454 from padloc/feature/auto-deploy-beta

Auto deploy Test AND Beta automatically on merge
This commit is contained in:
Bruno Bernardino 2022-06-01 14:10:12 +01:00 committed by GitHub
commit 17df06a14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }}"
}
}'