File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
+
3
+ parameters :
4
+ python-version :
5
+ type : string
6
+ default : " 3.7.13"
7
+
2
8
jobs :
3
9
build :
4
10
working_directory : ~/web-monitoring-diff
5
11
docker :
6
- - image : cimg/python:3.7
12
+ - image : cimg/python:<< pipeline.parameters.python-version >>
7
13
steps :
8
14
- checkout
9
15
- run :
@@ -15,11 +21,11 @@ jobs:
15
21
16
22
- restore_cache :
17
23
keys :
18
- - cache-v2-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "requirements-experimental.txt" }}
19
- - cache-v2-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-
20
- - cache-v2-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-
21
- - cache-v2-{{ arch }}-{{ checksum "requirements.txt" }}-
22
- - cache-v2-{{ arch }}-
24
+ - cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>- {{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "requirements-experimental.txt" }}
25
+ - cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>- {{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-
26
+ - cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>- {{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-
27
+ - cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>- {{ checksum "requirements.txt" }}-
28
+ - cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>-
23
29
24
30
# Bundle install dependencies
25
31
- run :
32
38
33
39
# Store bundle cache
34
40
- save_cache :
35
- key : cache-v2-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "requirements-experimental.txt" }}
41
+ key : cache-v2-{{ arch }}-python<< pipeline.parameters.python-version >>- {{ checksum "requirements.txt" }}-{{ checksum "requirements-server.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "requirements-experimental.txt" }}
36
42
paths :
37
43
- venv
38
44
58
64
# cd docs && make html
59
65
60
66
build_docker :
61
- machine : true
67
+ machine :
68
+ image : ubuntu-2004:202111-02
62
69
steps :
63
70
- checkout
64
71
- run : |
74
81
- docker-image
75
82
76
83
publish_docker :
77
- machine : true
84
+ machine :
85
+ image : ubuntu-2004:202111-02
78
86
steps :
79
87
- attach_workspace :
80
88
at : /tmp/workspace
Original file line number Diff line number Diff line change 6
6
# We separate them out so that the final `release` image can layer on top of
7
7
# this one without needing compiler-related packages.
8
8
# #
9
- FROM python:3.7-slim as base
9
+ FROM python:3.7.13 -slim as base
10
10
LABEL maintainer="enviroDGI@gmail.com"
11
11
12
12
RUN apt-get update && apt-get install -y --no-install-recommends \
You can’t perform that action at this time.
0 commit comments