-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
60 lines (55 loc) · 1.4 KB
/
.drone.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
kind: pipeline
type: kubernetes
name: build and test
trigger:
repo:
- saty9/allez
events:
- push
steps:
- name: lock-requirements
image: python:3.8
commands:
- pip install pipenv
- pipenv lock --keep-outdated --requirements > requirements.txt
- pipenv lock --keep-outdated --requirements --dev-only > requirements-dev.txt
- name: test
image: python:3.8
environment:
REDIS_HOST: "redis"
DEBUG: "True"
commands:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- python manage.py test
depends_on:
- lock-requirements
when:
event:
- push
- name: create_image
image: banzaicloud/drone-kaniko
settings:
username: user
password: password
registry: "registry.container-registry:5000"
repo: "allez"
skip_tls_verify: true
tags: ${DRONE_COMMIT_SHA}
context: "/drone/src"
dockerfile: "/drone/src/Dockerfile --insecure"
depends_on:
- lock-requirements
- name: create_static_image
image: banzaicloud/drone-kaniko
settings:
username: user
password: password
registry: "registry.container-registry:5000"
repo: "allez-static"
skip_tls_verify: true
tags: ${DRONE_COMMIT_SHA}
context: "/drone/src"
dockerfile: "/drone/src/DockerfileStatic --insecure"
depends_on:
- lock-requirements