Skip to content

Commit

Permalink
Merge pull request #113 from prometheus/sdurrheimer/fix-circleci
Browse files Browse the repository at this point in the history
circleci: fix config to make the tarballs upload on github works
  • Loading branch information
sdurrheimer authored Nov 7, 2018
2 parents 99470dc + b374f41 commit 264dc36
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
---
version: 2
version: 2.1

jobs:
test:
executors:
# Whenever the Go version is updated here, .travis.yml and .promu.yml
# should also be updated.
golang:
docker:
- image: circleci/golang:1.11
working_directory: /go/src/github.com/prometheus/promu

jobs:
test:
executor: golang

steps:
- checkout
- run: make promu
- run: make check_license style vet unused staticcheck build
- store_artifacts:
path: promu
destination: /build/promu
- run: rm -v promu

build:
Expand All @@ -25,6 +34,9 @@ jobs:
root: .
paths:
- .build
- store_artifacts:
path: .build
destination: /build

release_tags:
docker:
Expand All @@ -36,6 +48,8 @@ jobs:
- run: mkdir -v -p ${HOME}/bin
- run: curl -L 'https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2' | tar xvjf - --strip-components 3 -C ${HOME}/bin
- run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
- attach_workspace:
at: .
- run: make promu
- run: promu crossbuild tarballs
- run: promu checksum .tarballs
Expand Down

0 comments on commit 264dc36

Please sign in to comment.