-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect environment variables for the ddv flutter build script #205
Conversation
scripts/build-flutter-app.sh
Outdated
@@ -5,15 +5,13 @@ set -e | |||
# Display each command as it's run. | |||
set -x | |||
|
|||
DEPLOY_BRANCH=deploy-slac | |||
|
|||
cd /usr/src/rubintv | |||
git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-sitcom/rubin_chart | |||
git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-ts/rubintv_visualization ./ddv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is going to be set by environment var, would it be useful to have a more specified name, i.e. DDV_DEPLOY_BRANCH
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea! that would be better. I'll make the change 👍.
scripts/build-flutter-app.sh
Outdated
cd /usr/src/rubintv | ||
git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-sitcom/rubin_chart | ||
git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-ts/rubintv_visualization ./ddv | ||
|
||
# Base HREF must be bookended by "/". | ||
DDV_BASE_HREF=/rubintv/ddv/ | ||
CLIENT_WS_ADDRESS=rubintv/ws/ddv | ||
CLIENT_WS_ADDRESS=${CLIENT_WS_ADDRESS:-rubintv/ws/ddv} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I guess the same here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree 👍.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
f30c462
to
82dff68
Compare
This PR adjuts the
scripts/build-flutter-app.sh
in order to connect environment variables set on the different deployments.