Clone a git repo in a deploy step

Hi Okteto team,

We’re intending to use a Helm plugin which allows us to deploy helm charts directly from git repos, without having to bundle the chart as a .tgz

So, once the plugin is installed, you can use a normal git repo as a helm chart repo.

The plugin is GitHub - aslafy-z/helm-git: Helm Plugin - Install Helm Charts directly from Git repositories

Once the plugin is installed, it will need to clone the repo containing the chart.

The repo containing the chart is inside our GitHub organisation, and we’ve given the Okteto GH app full access to every repo in the org.

However, when the pipeline attempts to clone the repo, it throws this error:

"helm repo add --force-update dev "git+ssh://"
just now
! Warning: Permanently added the ECDSA host key for IP address '' to the list of known hosts.
! ERROR: Repository not found.
! fatal: Could not read from remote repository.
!! Please make sure you have the correct access rights! and the repository exists.
! Error in plugin 'helm-git': Unable to fetch remote. Check your Git url.
! Error: looks like "git+ssh://***/***@helm-chart/?ref=v1&sparse=0" is not a valid chart repository or cannot be reached: plugin "helm-git" exited with error
error executing command 'helm repo add --force-update dev "git+ssh://***/***@helm-chart/?ref=v1&sparse=0"': exit status 1
exit status 1

type or paste code here

Hi @willem ,

Currently, we don’t support cloning other repositories within a pipeline using the GitHub App integration.

However, we support it in our self-hosted and in our scale and enterprise tiers of our SaaS product. Here you have a link to our documentation where the process is explained: Authenticating with an SSH Key | Okteto Documentation.

Once that is configured, you would need to clone the repositories within the pipeline using the ssh URL.

1 Like

I see, thank you for explaining this.