Skip to content

Commit ea4a2d7

Browse files
authored
CI: push tags to dockerhub (#3283)
1 parent f980447 commit ea4a2d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.circleci/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ _build_main_image_py36: &build_main_image_py36
5252
--rm=false \
5353
--tag nipype/nipype:latest \
5454
--tag nipype/nipype:py36 \
55+
$(test -z "${CIRCLE_TAG}" || echo --tag nipype/nipype:"${CIRCLE_TAG}") \
5556
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
5657
--build-arg VCS_REF="$(git rev-parse --short HEAD)" \
5758
--build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype
@@ -192,6 +193,7 @@ jobs:
192193
docker push nipype/nipype:base
193194
docker push nipype/nipype:latest
194195
docker push nipype/nipype:py36
196+
test -z "${CIRCLE_TAG}" || docker push nipype/nipype:"${CIRCLE_TAG}"
195197
- run:
196198
name: Move pruned Dockerfile to /tmp/docker/cache directory
197199
command: |
@@ -353,6 +355,8 @@ workflows:
353355
filters:
354356
branches:
355357
only: master
358+
tags:
359+
only: /.*/
356360
requires:
357361
- test_pytest
358362
- deploy_pypi:

0 commit comments

Comments
 (0)