From b374f41c8b414c154dbe92402f3f5b6bc97f15fa Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Wed, 7 Nov 2018 14:10:21 +0100 Subject: [PATCH] circleci: fix config to make the tarballs upload on github works Based on the main prometheus repository circleci config Signed-off-by: Steve Durrheimer --- .circleci/config.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d128e190..bc076cc4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -25,6 +34,9 @@ jobs: root: . paths: - .build + - store_artifacts: + path: .build + destination: /build release_tags: docker: @@ -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