-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from Beherith/master
Update build script
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
echo "Starting release process..." | ||
cd /opt/build | ||
rm -rf /opt/build/_build/prod/rel/teiserver/releases | ||
|
||
echo "Creating release artifact directory..." | ||
mkdir -p /opt/build/rel/artifacts | ||
|
||
echo "Installing rebar and hex..." | ||
mix local.rebar --force | ||
mix local.hex --if-missing --force | ||
|
||
echo "Fetching project deps..." | ||
mix deps.get | ||
|
||
echo "Cleaning and compiling..." | ||
# "If you are using Phoenix, here is where you would run mix phx.digest" | ||
mix phx.digest | ||
|
||
echo "Generating release..." | ||
mix release | ||
|
||
echo "Creating tarball..." | ||
tar -zcf "/opt/build/rel/artifacts/teiserver.tar.gz" /opt/build/_build/prod | ||
|
||
echo "Release generated at rel/artifacts/teiserver.tar.gz" | ||
exit 0 |
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