Add Deploy preview for submodules

This commit is contained in:
Jeremy Denquin 2022-03-21 15:44:32 +01:00
parent efde4a9bbd
commit 4aaa93bd06
No known key found for this signature in database
GPG Key ID: 9E2B6D4E714D5CE0
2 changed files with 36 additions and 1 deletions

35
.github/workflows/deploy-preview.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Deploy Preview to Staging
on:
workflow_dispatch:
inputs:
front_branch:
description: Front Branch
required: true
default: 'main'
api_branch:
description: API Branch
required: true
default: 'main'
jobs:
deploy-front:
name: Deploy Front
runs-on: ubuntu-latest
steps:
- name: Front Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: getlago/lago-front
event-type: deploy-preview
client-payload: '{ "branch": "${{ github.event.inputs.front_branch }}" }'
deploy-api:
name: Deploy API
runs-on: ubuntu-latest
steps:
- name: API Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: getlago/lago-api
event-type: deploy-preview
client-payload: '{ "branch": "${{ github.event.inputs.api_branch }}" }'

2
api

@ -1 +1 @@
Subproject commit 721ab9063e0e4f399dbcf50db77ad9c2fa87ac5c
Subproject commit d2d6dcb358cd020183dc01545e9e07e4c6c22834