Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (59 sloc) 2.75 KB
title meta_title meta_description custom_excerpt image author tags featured visibility status
Repos on Github
Github
How to use code from GitHub repositories on Polyaxon. You can use code from your GitHub repositories directly in Polyaxon projects without having to check them out on your local machine first.
GitHub is an online service for software development projects that use the Git revision control system.
../../content/images/integrations/github.png
name slug website twitter github
Polyaxon
Polyaxon
polyaxonAI
polyaxon
scm
repos
true
public
published

You can use code from your GitHub repositories directly in Polyaxon projects without having to check them out on your local machine first.

Overview

Polyaxon supports repos hosted on GitHub. You can use code from your GitHub repositories directly in Polyaxon projects without having to check them out on your local machine first.

N.B. Polyaxon supports public and private GitHub repos, you don't need to have a GitHub account to use code from public GitHub repositories. e.g. https://github.com/polyaxon/polyaxon-quick-start

Open GitHub Developer Settings

At the bottom of the settings menu on the left, click Developer Settings.

github-integration1

Choose personal access token

Select the Personal access tokens link on the left. On that page, click the Generate new token button on the right.

github-integration1

Generate a new token

Choose a name for the token (e.g. "Polyaxon"), then grant the token "repo" and "admin:repo_hook" permissions. This will enable Polyaxon to read your repositories and detect new commits. Click the Generate Token button at the bottom to create the token.

github-integration1

Copy the token

Select the token and copy it. Alternatively, you can click the blue icon next to the token to automatically copy it to the clipboard.

github-integration1

Update your deployment config file and deploy/upgrade

reposAccessToken: TokenHashHere

Setting an external repo for code tracking

You need a project on polyaxon that it's not linked to a code repo yet:

polyaxon project create --name=quick-start

And then you need set the git url:

polyaxon project -p project1 git --url="https://github.com/polyaxon/polyaxon-quick-start"

If the project is private you need to add --private to the command to indicate that the repo is private, i.e.

polyaxon project -p project1 git --url="https://github.com/polyaxon/polyaxon-quick-start" --private
You can’t perform that action at this time.