-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beam Enrich: build Docker image (closes #3815)
- Loading branch information
Showing
4 changed files
with
27 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
tag=$1 | ||
|
||
file="${HOME}/.dockercfg" | ||
docker_repo="snowplow-docker-registry.bintray.io" | ||
curl -X GET \ | ||
-u${BINTRAY_SNOWPLOW_DOCKER_USER}:${BINTRAY_SNOWPLOW_DOCKER_API_KEY} \ | ||
https://${docker_repo}/v2/auth > $file | ||
|
||
cd $TEST_DIR | ||
|
||
project_version=$(sbt version -Dsbt.log.noformat=true | perl -ne 'print "$1\n" if /info.*(\d+\.\d+\.\d+[^\r\n]*)/' | head -n 1 | tr -d '\n') | ||
if [ "${project_version}" == "${tag}" ]; then | ||
sbt docker:publish | ||
else | ||
echo "Tag version '${tag_version}' doesn't match version in scala project ('${project_version}'). Aborting!" | ||
exit 1 | ||
fi | ||
|
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,3 +1,3 @@ | ||
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.4") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.5") | ||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0") |