Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Deployment
on:
push:
branches:
- main
- production

pull_request: []


jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: docker-compose run --rm app sh -c "python manage.py test"

lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: docker-compose run --rm app sh -c "flake8"

deploy-staging:
name: Deploy to Staging
runs-on: ubuntu-20.04
needs: [test, lint]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Staging
run: echo "Deploy to STAGING code here"


deploy-prod:
name: Deploy to Production
runs-on: ubuntu-20.04
needs: [test, lint]
if: github.ref == 'refs/heads/production'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Prod
run: echo "Deploy to PRODUCTION code here"
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#233120",
"titleBar.activeBackground": "#31452D",
"titleBar.activeForeground": "#FAFBF9"
}
}
1 change: 1 addition & 0 deletions app/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

def index(request):
"""Render index page."""
# return None
return render(request, 'home/index.html')
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Django>=3.1.7,<3.2
uWSGI>=2.0.19,<2.1

flake8>=3.9.0,<3.10