Skip to content

Commit a2dd537

Browse files
author
Roger Lam
authored
fix(docker) build the latest docker image first, then tag (#351)
1 parent f986df9 commit a2dd537

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.circleci/config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,32 @@ workflows:
4141
only: /.*/
4242
branches:
4343
ignore: /.*/
44-
- docker-tools/tag:
45-
name: tag
44+
- docker-tools/build_and_push:
45+
name: build_and_push_latest
4646
context: docker-deploy
4747
docker_username: ${DOCKER_USERNAME}
4848
docker_password: ${DOCKER_PASSWORD}
49+
workspace_root: *workspace_root
4950
docker_image: *docker_image
51+
docker_tag: latest
5052
filters:
5153
tags:
5254
only: /.*/
5355
branches:
5456
ignore: /.*/
55-
- docker-tools/build_and_push:
56-
name: build_and_push_latest
57+
docker_build_args: --build-arg VERSION=${CIRCLE_TAG}
58+
- docker-tools/tag:
59+
name: tag
5760
context: docker-deploy
5861
docker_username: ${DOCKER_USERNAME}
5962
docker_password: ${DOCKER_PASSWORD}
60-
workspace_root: *workspace_root
6163
docker_image: *docker_image
62-
docker_tag: latest
64+
docker_source_tag: latest
6365
filters:
6466
tags:
6567
only: /.*/
6668
branches:
6769
ignore: /.*/
68-
docker_build_args: --build-arg VERSION=${CIRCLE_TAG}
6970

7071
executors:
7172
python-tox:

0 commit comments

Comments
 (0)