Enable deployments from 'production' branch push, add tag field for rollbacks to git sha

This commit is contained in:
Riordan Panayides 2022-10-08 13:06:59 +01:00
parent 190528b722
commit 66ed5f3db9
2 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@ name: Publish Docker Image to GCR
on:
push:
branches: [main, master]
branches: [main, master, production]
workflow_call:
secrets:
GCR_PROJECT:

View File

@ -2,6 +2,20 @@ name: Deploy to Fly
on: workflow_dispatch
on:
workflow_run:
workflows: ["Publish Docker Image to GCR"]
branches: [production]
types:
- completed
workflow_dispatch:
inputs:
imageTag:
description: 'Docker Image Tag'
required: true
type: string
default: 'latest'
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}