Skip to content

Commit 1889abb

Browse files
committed
chore: adding 3.8, context and push
1 parent 0b47c77 commit 1889abb

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

‎.circleci/config.yml‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1717
jobs:
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 >>
3636
workflows:
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"

0 commit comments

Comments
 (0)