From df9f17714226141adc2e3874489d8cf49a9bcbe1 Mon Sep 17 00:00:00 2001 From: John Arundel Date: Wed, 5 Dec 2018 14:56:02 +0000 Subject: [PATCH] Tag container; ignore non-tag pushes --- .circleci/config.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a6a7f00..9917b76 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,18 +12,17 @@ jobs: - checkout - run: docker build -t bitfield/uptimerobot:test . - run: docker login -u $DOCKER_USER -p $DOCKER_PASS - - run: docker push bitfield/uptimerobot:test + - run: docker push bitfield/uptimerobot:$CIRCLE_TAG bitfield/uptimerobot:latest workflows: version: 2 dockerbuild: jobs: - test: - filters: - tags: - only: /^v\d+\.\d+\.\d+/ - build_docker: requires: - test filters: + branches: + ignore: /.*/ tags: only: /^v\d+\.\d+\.\d+/