File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -11,27 +11,32 @@ variables:
11
11
NEW_XML_REPO : $NEW_XML_REPO
12
12
USER_EMAIL : $USER_EMAIL
13
13
USER_NAME : $USER_NAME
14
+ PIP_CACHE_DIR : " $CI_PROJECT_DIR/pip-cache"
15
+
16
+ cache :
17
+ paths :
18
+ - " $CI_PROJECT_DIR/pip-cache"
19
+ key : " $CI_PROJECT_ID"
14
20
15
21
before_script :
16
22
- date
17
- - python -m pip install --user -r requirements.txt
18
23
19
24
after_script :
20
25
- date
21
26
22
27
.review : &review
23
28
tags :
24
- - dind
25
- image : python:3
29
+ - zabbix
26
30
script :
31
+ - python3 -m pip install --user -r requirements.txt
27
32
- git config --global user.email "$USER_EMAIL"
28
33
- git config --global user.name "$USER_NAME"
29
34
- git clone https://oauth2:$GITLAB_TOKEN@$GITLAB_FQDN/$GITLAB_GROUP/$GITLAB_REPO.git
30
35
- cd $GITLAB_REPO
31
36
- git checkout -b develop origin/develop || git checkout develop
32
37
- git pull
33
38
- rm -rf *
34
- - python ../zabbix-export.py $SAVE_YAML
39
+ - python3 ../zabbix-export.py $SAVE_YAML
35
40
- git add .
36
41
- d=$(date +%Y-%m-%d)
37
42
- " git commit -m':robot: Autobackup' ||:"
You can’t perform that action at this time.
0 commit comments