File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ executors:
1313 # environment:
1414 # ENV_VAR: ENV_VALUE
1515 working_directory : /root/docker
16- resource_class : medium
16+ resource_class : small
1717jobs :
1818 build-docker-generic :
1919 executor : docker-executor
@@ -24,24 +24,38 @@ jobs:
2424 docker_type :
2525 type : string
2626 default : " cpu"
27-
2827 steps :
2928 - checkout
3029 - setup_remote_docker
3130 - run :
32- name : Build image
33- # docker login -u "$REGISTRY_LOGIN" -p "$REGISTRY_TOKEN"
31+ name : Build and push image
3432 command : |
35- docker build ./dockerfiles/<< parameters.python_version >>/<< parameters.docker_type >>/ -t bazire/python:3.7-cpu
33+ docker login -u "$DOCKERHUB_LOGIN" -p "$DOCKERHUB_TOKEN"
34+ docker build ./dockerfiles/<< parameters.python_version >>/<< parameters.docker_type >>/ -t bazire/python:<< parameters.python_version >>-<< parameters.docker_type >>
35+ docker push bazire/python:<< parameters.python_version >>-<< parameters.docker_type >>
3636workflows :
3737 version : 2
3838 docker-python-build-3.7-cpu :
3939 jobs :
4040 - build-docker-generic :
41+ context : dockerhub
4142 python_version : " 3.7"
4243 docker_type : " cpu"
4344 docker-python-build-3.7-gpu :
4445 jobs :
4546 - build-docker-generic :
47+ context : dockerhub
4648 python_version : " 3.7"
49+ docker_type : " gpu"
50+ docker-python-build-3.8-cpu :
51+ jobs :
52+ - build-docker-generic :
53+ context : dockerhub
54+ python_version : " 3.8"
55+ docker_type : " cpu"
56+ docker-python-build-3.8-gpu :
57+ jobs :
58+ - build-docker-generic :
59+ context : dockerhub
60+ python_version : " 3.8"
4761 docker_type : " gpu"
You can’t perform that action at this time.
0 commit comments