Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
ci on github
Browse files Browse the repository at this point in the history
  • Loading branch information
ckluenter authored and Christoph Klünter committed Jan 28, 2020
1 parent 25b4335 commit 7a821d7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/aleph-exporter
/vendor

12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: docker-build
run: make docker
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.8
FROM jimdo/golang-dep
WORKDIR /go/src/app
COPY . .
RUN make
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vendor:
aleph-exporter: vendor
go build ./cmd/...

docker: aleph-exporter
docker:
docker build -t aleph-exporter .

docker-push:
Expand All @@ -22,7 +22,7 @@ clean:
rm -r vendor
rm aleph-exporter

lint:
lint: vendor
golint
gosec -exclude=G104 ./...

1 change: 0 additions & 1 deletion cmd/aleph-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"flag"
"log"
"net/http"

"github.com/prometheus/client_golang/prometheus/promhttp"
)

Expand Down

0 comments on commit 7a821d7

Please sign in to comment.