2022-09-20 14:01:24 -07:00
|
|
|
name: Deploy to Fly
|
|
|
|
|
2022-10-08 05:06:59 -07:00
|
|
|
on:
|
|
|
|
workflow_run:
|
2023-04-25 08:16:20 -07:00
|
|
|
workflows: ["Publish Docker Image"]
|
2022-10-08 05:06:59 -07:00
|
|
|
branches: [production]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
imageTag:
|
|
|
|
description: 'Docker Image Tag'
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
default: 'latest'
|
|
|
|
|
2022-09-20 14:01:24 -07:00
|
|
|
env:
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Fly
|
|
|
|
uses: superfly/flyctl-actions/setup-flyctl@master
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
run: flyctl deploy
|