Skip to content

Commit

Permalink
Tag container; ignore non-tag pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfield committed Dec 5, 2018
1 parent 8ea1cb5 commit df9f177
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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+/

0 comments on commit df9f177

Please sign in to comment.