action-hosting-deploy
action-hosting-deploy copied to clipboard
Deploy to multiple environments
Let's say we want to deploy a preview of one commit to two environments. In our build step we will provide different API base urls for each envirnoment, dev
and qa
.
Is there any way to achieve this?
I suspect we can do two deploy steps, but it's not clear how we display in each message which environment the link is for.
it looks like you might be able to squeak by with channelId: "${{ github.event.number }}-dev"
, would love some feedback
related code: https://github.com/FirebaseExtended/action-hosting-deploy/blob/3a9069e021e490f212ba5f99591495fa5bbe8e1b/src/getChannelId.ts
Looks like this cannot be done without some guidance from firebase team, because if you do two builds like this it will just keep replacing the first github-actions comment containing the link. We need a way to specify multiple previews for multiple environments.
I'll just add that I was also looking for this functionality.
I'll just add that I was also looking for this functionality.
It's possible this is rolled into having multiple deploy domains and works automatically. I never got around to finding out if that was the case.
Looks like this cannot be done without some guidance from firebase team, because if you do two builds like this it will just keep replacing the first github-actions comment containing the link. We need a way to specify multiple previews for multiple environments.
I found your comment while trying to fix a similar issue – I think the fix is described here https://github.com/FirebaseExtended/action-hosting-deploy/issues/143#issuecomment-921789605