Skip to content

Commit

Permalink
Set var before build
Browse files Browse the repository at this point in the history
  • Loading branch information
estellecomment committed Jul 5, 2022
1 parent cd07795 commit 786c883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/package-scalingo-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set -e
version=`node -e 'console.log(require("./package.json").version)'`
today=$(date +%Y%m%d)

export VERSION=$version
echo "VERSION is set to $VERSION"

if [[ -n "$CONFIG" ]]; then
echo "CONFIG=$CONFIG"
cp "config.$CONFIG.json" config.json
Expand Down Expand Up @@ -36,6 +39,3 @@ rm -r tchap-$version

echo
echo "Packaged tchap-$version-$CONFIG"

scalingo --app $APP env-set VERSION=$version
echo "VERSION is set to $VERSION"

0 comments on commit 786c883

Please sign in to comment.