-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.09 KB
/
ci.yml
File metadata and controls
36 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: ci
on:
push:
branches:
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/commonknowledge/do-app-baseimage-django-node:ec719be0d63e9628fb34604ce198c679084c3eeb
# Workaround for: https://github.com/actions/checkout/issues/211
options: --user 1001
volumes:
- "/home/runner/docker/.cache:/home/app/.cache"
env:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
DEBUG: True
PY_IGNORE_IMPORTMISMATCH: 1
services:
db:
image: kartoza/postgis:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DBNAME: postgres
POSTGRES_HOSTNAME: postgres
POSTGRES_PORT: 5432
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /home/runner/docker/.cache/poetry
key: do-app-baseimage-django-node:ec719be0d63e9628fb34604ce198c679084c3eeb-poetry-${{ hashFiles('poetry.lock') }}
- run: make install
- run: make lint
- run: make deploy-docs