move circleci config to 2.0

This commit is contained in:
Bradley Cicenas
2017-07-12 03:35:22 +00:00
parent caa64724d0
commit e0f6563a39
2 changed files with 18 additions and 23 deletions

18
.circleci/config.yml Normal file
View File

@@ -0,0 +1,18 @@
version: 2
jobs:
build:
working_directory: ~/build
docker:
- image: circleci/golang:latest
steps:
- checkout
- setup_remote_docker:
version: 17.05.0-ce
- run: make image
- deploy: |
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
docker tag ctop quay.io/vektorlab/ctop:latest
docker tag ctop quay.io/vektorlab/ctop:$(cat VERSION)
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
docker push quay.io/vektorlab/ctop
fi