Enable deployments from 'production' branch push, add tag field for rollbacks to git sha
This commit is contained in:
parent
190528b722
commit
66ed5f3db9
|
@ -2,7 +2,7 @@ name: Publish Docker Image to GCR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [main, master, production]
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
secrets:
|
||||||
GCR_PROJECT:
|
GCR_PROJECT:
|
||||||
|
|
|
@ -2,6 +2,20 @@ name: Deploy to Fly
|
||||||
|
|
||||||
on: workflow_dispatch
|
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:
|
env:
|
||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue