Skip to content

Commit

Permalink
Allow build script to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Nov 15, 2024
1 parent d276832 commit e8c8f92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ trap finish EXIT

TAG=$(cat docker/tag)

# When running in Jenkins, a VERSION file is automatically added to the repo root.
# When running locally, add one here.
if [ ! -f "$PWD/VERSION" ]; then
echo "0.0.0-dev" > "$PWD/VERSION"
fi

CIDFILE=$(mktemp -u)
docker run -v "$PWD":/src:ro --cidfile="$CIDFILE" -e WRITE_ARTIFACTORY_USERNAME -e WRITE_ARTIFACTORY_PASSWORD -e WRITE_ARTIFACTORY_URL "$TAG"

Expand Down

0 comments on commit e8c8f92

Please sign in to comment.