LibreTexts / ngshare

nbgrader sharing service
https://ngshare.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
17 stars 17 forks source link

Fix Travis untrusted builds failing #121

Closed rkevin-arch closed 4 years ago

rkevin-arch commented 4 years ago

Currently untrusted builds (builds initiated by for example PRs from users who don't have write access to this repo) are failing since they don't have access to encrypted environment variables to push to Docker Hub (see this). This adds a check so if it's an untrusted build, we don't try to push the image to Docker Hub or the helm repo.

rkevin-arch commented 4 years ago

I'm gonna test it by merging this with #120.

rkevin-arch commented 4 years ago

https://travis-ci.org/github/LibreTexts/ngshare/builds/712664637 succeeded, so I'm gonna go ahead and merge this.