Skip to content
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

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

sebastian-aranda
Copy link
Collaborator

This PR adjuts the scripts/build-flutter-app.sh in order to connect environment variables set on the different deployments.

@sebastian-aranda sebastian-aranda changed the title Connect environment variables for flutter build script Connect environment variables for the ddv flutter build script Jul 9, 2024
@@ -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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 👍.

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}
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree 👍.

Copy link
Collaborator

@ugyballoons ugyballoons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@sebastian-aranda sebastian-aranda merged commit 56c41a3 into develop Jul 10, 2024
5 checks passed
@sebastian-aranda sebastian-aranda deleted the tickets/DM-44839 branch July 10, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants