This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from weaveworks/circleci2
Move to CircleCI 2.0
- Loading branch information
Showing
2 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.