forked from CovidTrackerFr/vitemadose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (54 loc) · 1.03 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
stages:
- test
- scrape
- deploy
test:
stage: test
image: python:3.8-alpine
timeout: "2 minutes"
before_script:
- ./scripts/install
script:
- ./scripts/test
except:
- schedules
trouver_les_rdv:
stage: scrape
image: python:3.8-alpine
timeout: "7 minutes"
tags:
- ovh
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: python:3.8-alpine
tags:
- ovh
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