From 50a2699707dae77b2adf87d86114733337e808d3 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Fri, 8 Sep 2023 22:10:37 +0200 Subject: [PATCH] restore fly workflow --- .github/workflows/fly-deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/fly-deploy.yml diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml new file mode 100644 index 0000000..02d7c98 --- /dev/null +++ b/.github/workflows/fly-deploy.yml @@ -0,0 +1,31 @@ +name: Deploy to Fly + +on: + workflow_run: + workflows: ["Publish Docker Image"] + 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 }} + +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 \ No newline at end of file