25 lines
571 B
Markdown
25 lines
571 B
Markdown
# CI Builder
|
|
|
|
My CI testing pipeline for a django project.
|
|
|
|
[](http://gitlab.ducoterra.net/ducoterra/ci_builder/-/commits/master)
|
|
|
|
## Django Environment Variables
|
|
|
|
### Django Secret
|
|
|
|
```bash
|
|
kubectl create secret generic django-secrets --from-literal=SECRET_KEY=$(python -c "import secrets ; print(secrets.token_urlsafe(32))")
|
|
```
|
|
|
|
### Django Allowed Hosts
|
|
|
|
```yaml
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: test
|
|
data:
|
|
ALLOWED_HOSTS: localhost,test.ducoterra.net
|
|
```
|