Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #85 from weaveworks/circleci2
Browse files Browse the repository at this point in the history
Move to CircleCI 2.0
  • Loading branch information
bboreham committed Apr 16, 2019
2 parents 12ef0a3 + f0e60d4 commit 47112a0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2

jobs:
build:
docker:
- image: quay.io/weaveworks/build-golang:1.11.1-stretch
working_directory: /go/src/github.com/weaveworks/kubediff
environment:
GOPATH: /go
steps:
- checkout
- run:
name: Install Docker client
command: |
curl -L -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.03.0-ce.tgz
tar -xz -C /tmp -f /tmp/docker.tgz
mv /tmp/docker/* /usr/bin
- setup_remote_docker
- run:
name: Dependencies
command: |
pip install virtualenv
make deps
- run:
name: make all
command: |
mkdir -p test-results/tests
make JUNIT_XML=test-results/tests/junit.xml all
- store_test_results:
path: test-results
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push weaveworks/kubediff:$(./tools/image-tag)
docker push weaveworks/kubediff:latest
docker login -u "$QUAY_USER" -p "$QUAY_PASSWORD" quay.io
docker push quay.io/weaveworks/kubediff:$(./tools/image-tag)
docker push quay.io/weaveworks/kubediff:latest
fi
29 changes: 0 additions & 29 deletions circle.yml

This file was deleted.

0 comments on commit 47112a0

Please sign in to comment.