Skip to content

Commit

Permalink
Switch to circleci v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Jan 13, 2018
1 parent 122f405 commit 261f196
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.9

working_directory: /go/src/github.com/jamesnetherton/homehub-cli

steps:
- checkout

- setup_remote_docker:
version: 17.11.0-ce

- run:
command: |
make test
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "release" ]; then
make release
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker push jamesnetherton/homehub-cli:latest
docker push jamesnetherton/homehub-cli:$(cat /go/src/github.com/jamesnetherton/homehub-cli/version.txt)
docker logout
fi
33 changes: 0 additions & 33 deletions circle.yml

This file was deleted.

0 comments on commit 261f196

Please sign in to comment.