Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Fix Docker release script for Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijskant committed Jun 5, 2020
1 parent 42bf388 commit 05f3131
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
# For the notification, configure `SLACK_WEBHOOK`
# - `travis env set SLACK_WEBHOOK "https://hooks.slack.com/services/..."`
after_deploy:
- export GRADLE_SCRIPT=$GRADLE_SCRIPT
- travis_retry ./.travis/docker_release.sh
- ./.travis/notify.sh

Expand Down
9 changes: 8 additions & 1 deletion .travis/docker_release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/usr/bin/env bash

if [ "${GRADLE_SCRIPT}z" == "z" ]; then
echo "GRADLE_SCRIPT variable is missing"
GRADLE_SCRIPT=gradle
fi

$GRADLE_SCRIPT --version

here=$(dirname "${0}")
pushd "${here}/.."
TRANSMART_VERSION=$(gradle properties | grep '^version: ' - | awk '{print $2}')
TRANSMART_VERSION=$(${GRADLE_SCRIPT} properties | grep '^version: ' - | awk '{print $2}')
popd

docker build --build-arg "TRANSMART_VERSION=${TRANSMART_VERSION}" -t "thehyve/transmart-api-server:${TRANSMART_VERSION}" "${here}/../docker/transmart-api-server" && \
Expand Down

0 comments on commit 05f3131

Please sign in to comment.