Skip to content

Commit fe8ad7d

Browse files
authored
ci: Added missing github-release binary. (thanos-io#413)
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
1 parent 1f82ddf commit fe8ad7d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
- checkout
7272
- setup_remote_docker:
7373
version: 17.07.0-ce
74+
- run: mkdir -v -p ${HOME}/bin
75+
- 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
76+
- run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
7477
- attach_workspace:
7578
at: .
7679
- run: make tarballs-release

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ crossbuild: deps $(PROMU)
4141
@echo ">> crossbuilding all binaries"
4242
$(PROMU) crossbuild -v
4343

44-
.PHONY: tarballs-release
45-
tarballs-release: $(PROMU)
46-
@echo ">> Publishing tarballs"
47-
$(PROMU) crossbuild tarballs
48-
$(PROMU) checksum .tarballs
49-
$(PROMU) release .tarballs
50-
5144
# deps fetches all necessary golang dependencies, since they are not checked into repository.
5245
.PHONY: deps
5346
deps: vendor
@@ -99,6 +92,13 @@ tarball: $(PROMU)
9992
@echo ">> building release tarball"
10093
$(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR)
10194

95+
.PHONY: tarballs-release
96+
tarballs-release: $(PROMU)
97+
@echo ">> Publishing tarballs"
98+
$(PROMU) crossbuild tarballs
99+
$(PROMU) checksum .tarballs
100+
$(PROMU) release .tarballs
101+
102102
# test runs all Thanos golang tests.
103103
.PHONY: test
104104
test: test-deps

0 commit comments

Comments
 (0)