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

Git creds is required to pull in private repos #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alok87
Copy link

@alok87 alok87 commented Aug 26, 2022

Fixes #68

~/.netrc file present is required to be present in local machine and needs to be mounted in docker run for containers to be able to pull private repos

Only passing GOPRIVATE=org won't work

Usage after this for local:

  • Create ~/.netrc file in ur machine with format:
machine github.com
login thockin
password XX
  • GOPRIVATE=thockin make build

Usage after this for ci/GitHub action:

  • Export GIT_TOKEN in the github action

  • Now, this will work from Github Action


GOPRIVATE=thockin make build

Showing sample usage. Based on discussion will fix the PR.

Would like to take #71 first and then update this PR and take it.

@alok87 alok87 closed this Aug 26, 2022
@alok87 alok87 reopened this Aug 26, 2022
@thockin thockin force-pushed the master branch 7 times, most recently from 02a976e to 72d5128 Compare August 27, 2022 20:56
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.

Support for private repos in build and other tasks
2 participants