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

Release 0.2.0 on appspot using a tagged commit and hooks/automation #1151

Closed
davelab6 opened this issue Nov 4, 2016 · 8 comments
Closed
Assignees
Labels

Comments

@davelab6
Copy link
Contributor

davelab6 commented Nov 4, 2016

@felipesanches please set up a git hook or something such that your appspot instance is in sync with master

@davelab6 davelab6 added this to the 0.2.0 milestone Nov 4, 2016
@felipesanches
Copy link
Collaborator

felipesanches commented Nov 9, 2016

First step is figuring out whether simply re-running gcloud app deploy is enough. (I think/hope it is!)

I'll try that now. And if it works, then I'll try to automate it.

@felipesanches
Copy link
Collaborator

ok, gcloud app deploy does its job (and pretty fast!)
I think I'll simply get used to manually running it after each important pull-request merge.

@felipesanches
Copy link
Collaborator

I looked up githooks documentation but it seems that it's not exactly what we would need here since the actual update on git master is performed by github itself (whenever I press the "merge pull request" button on their web ui) instead of being tied to specific git commands I run locally at my working copy.

The only interactions I have between my local copy and the origin remote (hosted on github) are:

  • rebasing master (to incorporate previously merged commits)
  • pushing feature-branches (prior to registering a corresponding pull request)

I could perhaps use Github Webhooks but it sounded too complicated for this usage scenario. I think it is easier to do deploy the webapp by hand (running gcloud app deploy) at least once a day, or after significant webapp fixes. I'll get used to it.

@davelab6
Copy link
Contributor Author

davelab6 commented Nov 10, 2016 via email

@felipesanches
Copy link
Collaborator

ok, cool! It makes sense. And it seems that this page explains how to do it. I'll try to set this up:

https://docs.travis-ci.com/user/deployment/google-app-engine/

felipesanches added a commit to felipesanches/fontbakery that referenced this issue Nov 10, 2016
felipesanches added a commit to felipesanches/fontbakery that referenced this issue Nov 10, 2016
@felipesanches
Copy link
Collaborator

I was able to generate a service api key in json format, then encrypt it with the travis command line and commit it (the encrypted file and its entry on .travis.yml) but the openssl command to decrypt the credentials server-side is failing on Travis.

Apparently the reason for that is that the credentials need to be encrypted specifically for the repository they're meant to be used at. I have used the felipesanches/fontbakery repo (my 'origin' remote) instead of the googlefonts/fontbakery repo (my 'upstream' remote).

I was not able yet to figure out how to select a different repo when encrypting the credentials with the travis command line tool. I see that its got a repos command, but it fails to give me any meaningful info. It spits out a cryptic message like this:

414: "" 

It also said the travis cli version is old and that I should update it, but the gem install procedure fails. I did a gem2.0 install travis and it seems to have succeeded, but the 414 problem did not go away yet after that.

I'd appreciate any advice people may have here because I have already spent too much time trying to figure this out. I'll move on to something else for a while and I'll revisit this issue later.

@davelab6
Copy link
Contributor Author

davelab6 commented Nov 11, 2016 via email

@davelab6 davelab6 changed the title Keep appspot instance in sync with master Release 0.2.0 on appspot using a tagged commit and hooks/automation Nov 21, 2016
@felipesanches
Copy link
Collaborator

We won't deploy anything to Google App Engine anymore as the next version of the drag-n-drop app will be a page of the dashboard hosted on Google Container Engine, as specified at #1230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants