Skip to content

Commit

Permalink
Merge 8bb8750 into 334be91
Browse files Browse the repository at this point in the history
  • Loading branch information
swade1987 committed Nov 12, 2019
2 parents 334be91 + 8bb8750 commit e78920f
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
defaults: &defaults
working_directory: ~/project
docker:
- image: docker:17.05.0-ce-git

jobs:
build:
<<: *defaults
branches:
only:
- master
steps:
- checkout
- setup_remote_docker
- run:
name: install dependencies
command: apk add --update alpine-sdk
- run:
name: build docker image
command: make build
- run:
name: login to quay.io
command: make login
- run:
name: push image to quay.io
command: make push
- run:
name: log out of quay.io
command: make logout
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
APP_NAME=burrow

QUAY_REPO=mettle
QUAY_USERNAME?="mettle+burrow"
QUAY_PASSWORD?="unknown"

CIRCLE_BUILD_NUM?="unknown"
VERSION=1.2.2-$(CIRCLE_BUILD_NUM)

IMAGE = quay.io/$(QUAY_REPO)/$(APP_NAME):$(VERSION)

build:
docker build -t $(IMAGE) .

login:
docker login -u $(QUAY_USERNAME) -p $(QUAY_PASSWORD) quay.io

logout:
docker logout

push:
docker push $(IMAGE)
docker rmi $(IMAGE)

scan:
trivy --clear-cache --severity "UNKNOWN,MEDIUM,HIGH,CRITICAL" --exit-code 0 --quiet --auto-refresh $(IMAGE)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![go report card](https://goreportcard.com/badge/github.com/linkedin/Burrow)](https://goreportcard.com/report/github.com/linkedin/Burrow)
[![Coverage Status](https://coveralls.io/repos/github/linkedin/Burrow/badge.svg?branch=master)](https://coveralls.io/github/linkedin/Burrow?branch=master)
[![GoDoc](https://godoc.org/github.com/linkedin/Burrow?status.svg)](https://godoc.org/github.com/linkedin/Burrow)
[![Docker Repository on Quay](https://quay.io/repository/mettle/burrow/status "Docker Repository on Quay")](https://quay.io/repository/mettle/burrow)

# Burrow - Kafka Consumer Lag Checking

Expand Down

0 comments on commit e78920f

Please sign in to comment.