forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
circleci using docker + deployment step for new releases.
- Loading branch information
1 parent
3df2e55
commit cf308bc
Showing
4 changed files
with
146 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.*.swp | ||
dist/* | ||
/kapacitor | ||
/kapacitord | ||
/build/* | ||
kapacitor_linux* | ||
kapacitord_linux* | ||
*~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/bin/bash | ||
# Run the build utility via Docker | ||
|
||
set -e | ||
|
||
# Make sure our working dir is the dir of the script | ||
DIR=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd) | ||
cd $DIR | ||
|
||
set -e | ||
# Run the build utility via Docker | ||
docker build --tag=kapacitor-builder $DIR | ||
|
||
# Build new docker image | ||
docker build -t influxdb/kapacitor-builder $DIR | ||
echo "Running build.py" | ||
docker run -e AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" -e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" -v $DIR:/gopath/src/github.com/influxdb/kapacitor kapacitor-builder "$@" | ||
# Run docker | ||
docker run --rm \ | ||
-e AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \ | ||
-e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \ | ||
-v $DIR:/gopath/src/github.com/influxdb/kapacitor \ | ||
influxdb/kapacitor-builder \ | ||
--outdir=/tmp/kapacitor-build "$@" |
Oops, something went wrong.