File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 5
5
gcp-gcr :
circleci/[email protected]
6
6
docker :
circleci/[email protected]
7
7
8
+ parameters :
9
+ python-version :
10
+ type : string
11
+ default : ' 3.10'
12
+
8
13
executors :
9
14
ubuntu-machine-executor :
10
15
machine :
@@ -13,7 +18,7 @@ executors:
13
18
jobs :
14
19
build :
15
20
docker : &docker
16
- - image : python:3.10
21
+ - image : python:<< pipeline.parameters.python-version >>
17
22
steps :
18
23
- checkout
19
24
- &restore_venv_cache
@@ -23,11 +28,12 @@ jobs:
23
28
# patterns to restore cache
24
29
- &python_cache_key
25
30
# yamllint disable-line rule:line-length
26
- python-3.10-packages-v1-{{ .Branch }}-{{ checksum "requirements.in" }}-{{ checksum "requirements.txt" }}
27
- # yamllint disable-line rule:line-length
28
- - python-3.10-packages-v1-{{ .Branch }}-{{ checksum "requirements.in" }}-
29
- - python-3.10-packages-v1-{{ .Branch }}-
30
- - python-3.10-packages-v1-main-
31
+ python-<< pipeline.parameters.python-version >>-packages-v1-{{ .Branch }}-{{ checksum "requirements.in" }}-{{ checksum "requirements.txt" }}
32
+ # yamllint disable-line rule:line-length
33
+ - python-<< pipeline.parameters.python-version >>-packages-v1-{{ .Branch }}-{{ checksum "requirements.in" }}-
34
+ # yamllint disable-line rule:line-length
35
+ - python-<< pipeline.parameters.python-version >>-packages-v1-{{ .Branch }}-
36
+ - python-<< pipeline.parameters.python-version >>-packages-v1-main-
31
37
- &build
32
38
run :
33
39
name : Build
You can’t perform that action at this time.
0 commit comments