Giter VIP home page Giter VIP logo

Comments (7)

kcranston avatar kcranston commented on September 16, 2024

I am not sure I understand this request. That action only runs on pull requests. The build-deploy action runs after merge. (This image does not get re-built if it exists already).

from hub-ops.

lwasser avatar lwasser commented on September 16, 2024

oh - well i saw that all of nathan's pr's were failing and you mentioned that was because they don't have access to secrets. in my mind, i thought maybe pull requests didn't need to push to dockerhub and thus wouldn't need authentication. somehow on travis when you submitted a PR it would build but not push. Maybe however that was because travis stored the secrets instead of github?

essentially it would be nice to merge passing PR's is the end goal and know the containers build ok before doing so. short term we can totally deal as things seem to be working beautifully now!! thank you!

from hub-ops.

kcranston avatar kcranston commented on September 16, 2024

Ah, I get it now. Because the tests involve authentication and reading secrets stored in Settings -> Secrets, PR builds will only pass if they originate from branches of this repo (not from forks). So, we should make sure that contributors have the permission to push branches and create pull requests, and we should update the docs to reflect this.

from hub-ops.

kcranston avatar kcranston commented on September 16, 2024

In the previous travis-based CI, the deploy.py script used files in the secrets dir to authenticate to dockerhub and gcloud. In the move to Actions, we've followed the GitHub guides for moving secrets to repository settings. Also, the deploy script can now be run locally without fear of messing up local authentication to services.

from hub-ops.

kcranston avatar kcranston commented on September 16, 2024

It looks like it might be possible to run the existing Action on PRs from forks, based on this blog post by changing the event type to pull_request_target.

from hub-ops.

lwasser avatar lwasser commented on September 16, 2024

oh - that's worth ha shot @kcranston we do get outside contributors every once in a while.

from hub-ops.

lwasser avatar lwasser commented on September 16, 2024

this was fixed. closing

from hub-ops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.