Skip to content
Snippets Groups Projects
Commit 82725698 authored by Oliver's avatar Oliver
Browse files

try to fix github binary release

parent 7cb8e02e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -107,7 +107,8 @@ steps:
Loading
@@ -107,7 +107,8 @@ steps:
- name: release-github-binaries - name: release-github-binaries
image: "golang:1.12" image: "golang:1.12"
commands: commands:
- './build-github-binaries.sh' - "apt-get update && apt-get install -y zip"
- "./build-github-binaries.sh"
when: when:
event: event:
- tag - tag
Loading
@@ -19,6 +19,11 @@ gox -rebuild --osarch="windows/amd64" -ldflags "$GO_LDFLAGS" -output "dist/redis
Loading
@@ -19,6 +19,11 @@ gox -rebuild --osarch="windows/amd64" -ldflags "$GO_LDFLAGS" -output "dist/redis
gox -rebuild --osarch="windows/386" -ldflags "$GO_LDFLAGS" -output "dist/redis_exporter" && cd dist && zip -9 redis_exporter-$DRONE_TAG.windows-386.zip redis_exporter.exe && rm redis_exporter.exe && cd .. gox -rebuild --osarch="windows/386" -ldflags "$GO_LDFLAGS" -output "dist/redis_exporter" && cd dist && zip -9 redis_exporter-$DRONE_TAG.windows-386.zip redis_exporter.exe && rm redis_exporter.exe && cd ..
   
echo "Upload to Github" echo "Upload to Github"
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $DRONE_TAG dist/
pwd
ls -la
ls -la dist/
ghr -u oliver006 -r redis_exporter --replace $DRONE_TAG dist/
   
echo "Done" echo "Done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment