Skip to content

Commit

Permalink
feat: adds fly deploy github action
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeek committed Jul 12, 2023
1 parent 0b40b6c commit 44b8f3a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=(?<currentValue>v.*)\\s"
]
},
{
"fileMatch": ["^\\.github\\/workflows\\/fly-deploy\\.yaml$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s.*_VERSION:\\s?(?<currentValue>v.*)\\s"
]
}
]
}
28 changes: 28 additions & 0 deletions .github/workflows/fly-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to Fly

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
env:
# renovate: datasource=github-releases depName=go-task/task
TASK_VERSION: v3.27.1
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.1.54
- name: Download go-task
run: curl -O https://github.com/go-task/task/releases/download/$TASK_VERSION/task_linux_amd64.deb
- name: Install go-task
run: sudo apt install -y ./task_linux_amd64.deb
- name: Deploy app
run: fly deploy --remote-only -a $FLY_APP
env:
FLY_APP: ${{ secrets.FLY_APP }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 44b8f3a

Please sign in to comment.