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

Mobile app CI build and deploy #2890

Merged
merged 18 commits into from
Jan 7, 2021
Merged

Mobile app CI build and deploy #2890

merged 18 commits into from
Jan 7, 2021

Conversation

corradio
Copy link
Member

@corradio corradio commented Jan 2, 2021

This PR adds support for continuously deploying the cordova app in our CI.
@FelixDQ @Kongkille FYI

Outstanding tasks:

Now also shows current app version (when it's on mobile):
image

@corradio corradio requested a review from FelixDQ January 6, 2021 17:47
@corradio corradio marked this pull request as ready for review January 6, 2021 17:47
Copy link
Member

@FelixDQ FelixDQ left a comment

Choose a reason for hiding this comment

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

This is awesome!

I added a minor comment, but it looks good to me 🎉

web/src/layout/leftpanel/mobileinfotab.js Outdated Show resolved Hide resolved
@@ -11,7 +11,7 @@ steps:

build:
environment:
ELECTRICITYMAP_PUBLIC_TOKEN: ${BRICK_ELECTRICITYMAP_PUBLIC_TOKEN}
ELECTRICITYMAP_PUBLIC_TOKEN: ${BRICK_ELECTRICITYMAP_PUBLIC_TOKEN:-unknown}
Copy link
Member

Choose a reason for hiding this comment

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

What does this :-unknown mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's a fallback value for when the env variable is not defined.
It's due to electricitymaps/brick#79

@corradio corradio requested a review from FelixDQ January 7, 2021 10:44
Copy link
Member

@FelixDQ FelixDQ left a comment

Choose a reason for hiding this comment

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

LGTM

@corradio corradio enabled auto-merge (squash) January 7, 2021 11:26
@corradio corradio merged commit 3390796 into master Jan 7, 2021
@corradio corradio deleted the olc/mobileapp-ci branch January 7, 2021 11:36
con-cat pushed a commit to con-cat/electricitymap-contrib that referenced this pull request May 18, 2021
* Deploy electricityMap static assets to GCS

* update dockerfile paths

* Revert

* Fix dockerfile

* Add config

* update container path

* Mobile app CI build and deploy

* Show app version on mobile info tab

* lint

* restore build.sh

* update

* Add staging

* Add promote stage

* Final

* Req changes
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