From fad2d6c944e706132763752b463740bb2301b36d Mon Sep 17 00:00:00 2001 From: stormcat24 Date: Sun, 21 May 2017 00:14:00 +0900 Subject: [PATCH] push tagged image --- circle.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/circle.yml b/circle.yml index 169223b..5e66f07 100644 --- a/circle.yml +++ b/circle.yml @@ -37,3 +37,10 @@ deployment: - "docker build -t $CIRCLE_PROJECT_USERNAME/plasma:latest ." - "docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS" - "docker push $CIRCLE_PROJECT_USERNAME/plasma:latest" + release: + tag: /[0-9]+(\.[0-9]+)*/ + commands: + - make build + - "docker build -t $CIRCLE_PROJECT_USERNAME/plasma:$CIRCLE_TAG ." + - "docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS" + - "docker push $CIRCLE_PROJECT_USERNAME/plasma:$CIRCLE_TAG"