Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upload binaries to github as releases #2606

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
build: fix ghr command
docmerlin committed Aug 10, 2021
commit a3f64e01d68985cd9f2e5fcb4e6a05ac0e03cd6b
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ commands:
wget https://github.com/tcnksm/ghr/releases/download/${GHR_VERSION}/ghr_${GHR_VERSION}_linux_amd64.tar.gz
tar -xzf ghr_${GHR_VERSION}_linux_amd64.tar.gz
./build.sh --debug --clean --generate --package --package-udfs --upload --bucket=dl.influxdata.com/kapacitor/releases --platform=all --arch=all --release
./ghr_${GHR_VERSION}_linux_amd64/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} -replace ./build/
./ghr_${GHR_VERSION}_linux_amd64/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete -replace ${CIRCLE_TAG} ./build/

run_tests:
description: >
@@ -41,6 +41,9 @@ jobs:
working_directory: ~/kapacitor
steps:
- checkout
- restore_cache: # restores saved cache if no changes are detected since last run
keys:
- go-mod-{{ checksum "go.sum" }}
- setup_remote_docker:
docker_layer_caching: true
- run_tests
1 change: 0 additions & 1 deletion Dockerfile_build_ubuntu64
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@ RUN wget -q https://github.com/google/protobuf/releases/download/v${PROTO_VERSIO
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz

ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/kapacitor
#ENV PKG_CONFIG $PROJECT_DIR/pkg-config.sh
ENV PATH $GOPATH/bin:$PATH
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR