Skip to content

Commit

Permalink
Merge pull request gliderlabs#625 from gliderlabs/circle-test
Browse files Browse the repository at this point in the history
Properly use CircleCI 2.0 for builds
  • Loading branch information
josegonzalez committed Jun 16, 2018
2 parents 1601c9f + 769456a commit 86f29a7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
version: 2
jobs:
build:
docker:
- image: gliderlabs/ci:build-2
command: ["/bin/bash"]
working_directory: /go/src/github.com/gliderlabs/registrator
machine: true
steps:
- checkout
- setup_remote_docker
- run:
command: make circleci
- run:
Expand All @@ -18,14 +14,14 @@ jobs:
- deploy:
name: Deploy website
command: |
if is-branch "master"; then
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
mv .dockerignore .dockerignore-repo
eval $(docker run gliderlabs/pagebuilder circleci-cmd)
mv .dockerignore-repo .dockerignore
fi
- deploy:
name: Deploy beta channel
command: |
if is-branch "release"; then
if [[ "$CIRCLE_BRANCH" == "release" ]]; then
make release
fi

0 comments on commit 86f29a7

Please sign in to comment.