Skip to content

Commit

Permalink
Add CD configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalys committed Apr 22, 2024
1 parent 0544c88 commit a4be596
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ jobs:
DATABASE_URL: postgresql://postgres:postgres@localhost/ashar-project
run: |
pipenv run python manage.py test
16 changes: 16 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit a4be596

Please sign in to comment.