forked from CovidTrackerFr/vitemadose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
78 lines (77 loc) · 1.58 KB
/
.gitlab-ci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stages:
- test
- scrape
- deploy
cache:
paths:
- venv
- cache
test:
stage: test
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.8-alpine
timeout: "2 minutes"
before_script:
- ./scripts/install
script:
- ./scripts/test
except:
- schedules
- triggers
- branches
lister_contributeurs:
stage: scrape
allow_failure: true
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.8-alpine
timeout: "3 minutes"
before_script:
- ./scripts/install
script:
- ./scripts/contributors
artifacts:
name: "contributors"
paths:
- data/output
only:
- main
- gitlab-publish
- schedules
trouver_les_rdv:
stage: scrape
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.8-alpine
timeout: "2 hours"
tags:
- clevercloud
before_script:
- apk add --no-cache make curl
- ./scripts/install
- echo IP publique de sortie du gitlab runner $(curl -s https://ifconfig.me/ip )
- traceroute -4 -l -I partners.doctolib.fr
- curl --silent --fail --head https://partners.doctolib.fr/
script:
- ./scripts/scrape
- make stats
artifacts:
name: "rdv"
paths:
- data/output
only:
- main
- gitlab-publish
- schedules
pages:
stage: deploy
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.8-alpine
tags:
- clevercloud
script:
- mkdir -p public
- cp -r data/output/* public/
- scripts/create-index.sh public
- gzip -k -9 $(find public -type f)
only:
- main
- gitlab-publish
- schedules
artifacts:
paths:
- public